- Modified the error on the char-sql server to set chars online when it receives a save packet from a character tagged as offline.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7561 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
@@ -2595,11 +2595,16 @@ int parse_frommap(int fd) {
|
||||
if (
|
||||
(character = idb_get(online_char_db, aid)) != NULL &&
|
||||
character->char_id == cid)
|
||||
; //Temporary debug. Set chars online and save.
|
||||
else {
|
||||
ShowWarning("parse_from_map (save-char): Received data for non-existant/offline character (%d:%d). Setting char online.\n", aid, cid);
|
||||
set_char_online(id, cid, aid);
|
||||
}
|
||||
|
||||
{
|
||||
memcpy(&char_dat, RFIFOP(fd,13), sizeof(struct mmo_charstatus));
|
||||
mmo_char_tosql(cid, &char_dat);
|
||||
} else
|
||||
ShowError("parse_from_map (save-char): Received data for non-existant/offline character (%d:%d)!\n", aid, cid);
|
||||
}
|
||||
|
||||
if (RFIFOB(fd,12)) //Flag? Set character offline after saving [Skotlex]
|
||||
set_char_offline(cid, aid);
|
||||
|
||||
Reference in New Issue
Block a user