summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-11-13 21:06:21 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-11-13 21:06:21 +0000
commit8bb31688f71af76a143220c41079d3e01be85c1a (patch)
treeb3836c0c43f62110781fdec5e9dfc7863b2f740c /src/map/map.c
parentdc4f74eb17589524084cd08118f6fb60cfdcbf02 (diff)
downloadhercules-8bb31688f71af76a143220c41079d3e01be85c1a.tar.gz
hercules-8bb31688f71af76a143220c41079d3e01be85c1a.tar.bz2
hercules-8bb31688f71af76a143220c41079d3e01be85c1a.tar.xz
hercules-8bb31688f71af76a143220c41079d3e01be85c1a.zip
Resolved a client hang in the scenario where the client sent loadendack before the server finished loading all data (bugreport:3700).
Improved the performance of pc_autosave() to stop scanning players after it has already found the player it wanted to save (bugreport:3717). The 'overweight' status changes (SC_WEIGHT50/SC_WEIGHT90) will now be cleared on logout, to avoid saving them into the database (they get derived from player weight during login anyway). Improved lock.c on windows to use C's access(0) function instead of doing fopen/fclose when testing for existence of files. Re-added the 'static' attribute to mapindex_getmapname_ext's buffer; returning the address of a non-static local variable is undefined behavior (see r13901). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14144 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 8a845c4be..7488a5a15 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1600,6 +1600,10 @@ int map_quit(struct map_session_data *sd)
status_change_end(&sd->bl,SC_GUILDAURA,-1);
if(sd->sc.data[SC_ENDURE] && sd->sc.data[SC_ENDURE]->val4)
status_change_end(&sd->bl,SC_ENDURE,-1); //No need to save infinite endure.
+ if(sd->sc.data[SC_WEIGHT50])
+ status_change_end(&sd->bl,SC_WEIGHT50,-1);
+ if(sd->sc.data[SC_WEIGHT90])
+ status_change_end(&sd->bl,SC_WEIGHT90,-1);
if (battle_config.debuff_on_logout&1) {
if(sd->sc.data[SC_ORCISH])
status_change_end(&sd->bl,SC_ORCISH,-1);