summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormeko <mekolat@users.noreply.github.com>2015-06-12 22:23:42 -0400
committermekolat <mekolat@users.noreply.github.com>2015-06-12 22:32:06 -0400
commit3f5ab7ed5e9f078ff55e9fec2d52396909001d86 (patch)
treeed9b8b5e234113a0330c0e63101dc0a536670a11
parent182e82a79c0455b6e6734b1cb6d83cfcd7f28d61 (diff)
downloadtmwa-3f5ab7ed5e9f078ff55e9fec2d52396909001d86.tar.gz
tmwa-3f5ab7ed5e9f078ff55e9fec2d52396909001d86.tar.bz2
tmwa-3f5ab7ed5e9f078ff55e9fec2d52396909001d86.tar.xz
tmwa-3f5ab7ed5e9f078ff55e9fec2d52396909001d86.zip
do not count hidden players
-rw-r--r--src/map/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.cpp b/src/map/map.cpp
index 7d219a9..ea4552b 100644
--- a/src/map/map.cpp
+++ b/src/map/map.cpp
@@ -183,7 +183,7 @@ int map_addblock(dumb_ptr<block_list> 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)
+ if (bl->bl_type == BL::PC && !bool(bl->is_player()->status.option & Opt0::HIDE))
m->users++;
}