From 959387743887e9a57cf31b950f23be9bd34b919f Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 7 Jul 2006 16:28:41 +0000 Subject: - 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 --- src/map/map.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/map.h') 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); -- cgit v1.2.3-70-g09d2