diff options
author | cookiecrumbs <cookiecrumbs@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-17 06:36:49 +0000 |
---|---|---|
committer | cookiecrumbs <cookiecrumbs@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-17 06:36:49 +0000 |
commit | 4822003e8cd55d137d7d857fa38d4307ecaecc6b (patch) | |
tree | 6e6e5aacdf62b8036055cc90d4561332ff9d16e3 /src/map/pc.c | |
parent | 9696d99c3c4808c72e7bdab8bc56d8c11d0a1e2a (diff) | |
download | hercules-4822003e8cd55d137d7d857fa38d4307ecaecc6b.tar.gz hercules-4822003e8cd55d137d7d857fa38d4307ecaecc6b.tar.bz2 hercules-4822003e8cd55d137d7d857fa38d4307ecaecc6b.tar.xz hercules-4822003e8cd55d137d7d857fa38d4307ecaecc6b.zip |
Fixed double decrement with unit_remove_map and the issue that causes dynamic mobs to not spawn when one player is on the map. bugreport:1640
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16434 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 215086532..1e18e4941 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4637,6 +4637,12 @@ int pc_setpos(struct map_session_data* sd, unsigned short mapindex, int x, int y sd->md->ud.dir = sd->ud.dir; } + // If the player is changing maps, end cloaking and cloaking exceed. + if ( sd->state.changemap && sd->sc.count ) + { + status_change_end(&sd->bl, SC_CLOAKING, INVALID_TIMER); + status_change_end(&sd->bl, SC_CLOAKINGEXCEED, INVALID_TIMER); + } return 0; } |