diff options
author | meko <mekolat@users.noreply.github.com> | 2015-06-12 22:23:42 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2015-06-12 22:32:06 -0400 |
commit | 3f5ab7ed5e9f078ff55e9fec2d52396909001d86 (patch) | |
tree | ed9b8b5e234113a0330c0e63101dc0a536670a11 /src/map | |
parent | 182e82a79c0455b6e6734b1cb6d83cfcd7f28d61 (diff) | |
download | tmwa-3f5ab7ed5e9f078ff55e9fec2d52396909001d86.tar.gz tmwa-3f5ab7ed5e9f078ff55e9fec2d52396909001d86.tar.bz2 tmwa-3f5ab7ed5e9f078ff55e9fec2d52396909001d86.tar.xz tmwa-3f5ab7ed5e9f078ff55e9fec2d52396909001d86.zip |
do not count hidden players
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/map.cpp | 2 |
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++; } |