diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-07 16:28:41 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-07 16:28:41 +0000 |
commit | 959387743887e9a57cf31b950f23be9bd34b919f (patch) | |
tree | 8a472ad961a9d3df5dea73f84ae597735b02e52e /src/map/map.h | |
parent | ae287ef89682be736bf1281d758e5cd3bad56895 (diff) | |
download | hercules-959387743887e9a57cf31b950f23be9bd34b919f.tar.gz hercules-959387743887e9a57cf31b950f23be9bd34b919f.tar.bz2 hercules-959387743887e9a57cf31b950f23be9bd34b919f.tar.xz hercules-959387743887e9a57cf31b950f23be9bd34b919f.zip |
- Okay, added a chrif_save_ack packet to the char-server so now the map server will know once a character was "final saved", and only then the character will be removed from memory. On char-server reconnection, all chars that are in final-save state are resent to save (if they are still in memory, it's because the ack hasn't gotten here from the char-server). This should effectively block all dupe problems due to heavy inter-server lag, however as it's untested, it currently prints some debug messages when people are saved and then removed from memory. Need testers so this can be debugged and merged to stable!
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7568 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.h')
-rw-r--r-- | src/map/map.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/map.h b/src/map/map.h index d7456b742..c247d0a16 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -1304,6 +1304,7 @@ void map_foreachobject(int (*)(struct block_list*,va_list),int,...); int map_search_freecell(struct block_list *src, int m, short *x, short *y, int rx, int ry, int flag);
//
int map_quit(struct map_session_data *);
+void map_quit_ack(struct map_session_data *);
// npc
int map_addnpc(int,struct npc_data *);
@@ -1375,6 +1376,7 @@ int map_delmap(char *mapname); int map_addmobtolist(unsigned short m, struct spawn_data *spawn); // [Wizputer]
void map_spawnmobs(int); // [Wizputer]
void map_removemobs(int); // [Wizputer]
+void do_reconnect_map(void); //Invoked on map-char reconnection [Skotlex]
//Added for own save method
int charsql_db_init(int method);
|