From 0fe7b873ae06352aba2840eacf687d270d64fc2d Mon Sep 17 00:00:00 2001 From: epoque11 Date: Tue, 13 Dec 2011 02:21:13 +0000 Subject: - 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 --- src/map/unit.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/unit.c') 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--; -- cgit v1.2.3-60-g2f50