From 7a561ba98e5908d4887a15148487ee1800312e1f Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 5 Jul 2015 12:59:52 -0400 Subject: fix getmapusers --- src/map/map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/map.cpp') diff --git a/src/map/map.cpp b/src/map/map.cpp index 97b9e2e..d40977f 100644 --- a/src/map/map.cpp +++ b/src/map/map.cpp @@ -183,7 +183,7 @@ int map_addblock(dumb_ptr bl) if (bl->bl_next) bl->bl_next->bl_prev = bl; m->blocks.ref(x / BLOCK_SIZE, y / BLOCK_SIZE).normal = bl; - if (bl->bl_type == BL::PC && !bool(bl->is_player()->status.option & Opt0::HIDE)) + if (bl->bl_type == BL::PC) m->users++; } @@ -211,7 +211,7 @@ int map_delblock(dumb_ptr bl) return 0; } - if (bl->bl_type == BL::PC && !bool(bl->is_player()->status.option & Opt0::HIDE)) + if (bl->bl_type == BL::PC) bl->bl_m->users--; if (bl->bl_next) -- cgit v1.2.3-60-g2f50