summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-13 02:21:13 +0000
committerepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-13 02:21:13 +0000
commit0fe7b873ae06352aba2840eacf687d270d64fc2d (patch)
tree391d8d79f1ee00049a5421a6e2dc473a3d8d062a /src/map/unit.c
parent1e5059abe076709eed3a5044c6980c6a7615aece (diff)
downloadhercules-0fe7b873ae06352aba2840eacf687d270d64fc2d.tar.gz
hercules-0fe7b873ae06352aba2840eacf687d270d64fc2d.tar.bz2
hercules-0fe7b873ae06352aba2840eacf687d270d64fc2d.tar.xz
hercules-0fe7b873ae06352aba2840eacf687d270d64fc2d.zip
- Fixed hidden GMs being processed in the PVP ranking timer
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15083 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 44296ca51..9cb198c3c 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -2002,6 +2002,10 @@ int unit_remove_map_(struct block_list *bl, clr_type clrtype, const char* file,
else
if (--map[bl->m].users == 0 && battle_config.dynamic_mobs) //[Skotlex]
map_removemobs(bl->m);
+ if( !(sd->sc.option&OPTION_INVISIBLE) )
+ {// decrement the number of active pvp players on the map
+ --map[bl->m].users_pvp;
+ }
if( map[bl->m].instance_id )
{
instance[map[bl->m].instance_id].users--;