diff options
author | Wushin <pasekei@gmail.com> | 2015-06-19 21:53:17 -0500 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2015-06-19 21:53:17 -0500 |
commit | 6a0c11388cb15cc94bffacaedce8b10f3ac2b6f8 (patch) | |
tree | 7aaa9bfc0031e28145c189cf7c739b5413fd10b3 /src | |
parent | 079e8815d62e052d654c4263f75cf7007f1cd4c3 (diff) | |
parent | 3f5ab7ed5e9f078ff55e9fec2d52396909001d86 (diff) | |
download | tmwa-6a0c11388cb15cc94bffacaedce8b10f3ac2b6f8.tar.gz tmwa-6a0c11388cb15cc94bffacaedce8b10f3ac2b6f8.tar.bz2 tmwa-6a0c11388cb15cc94bffacaedce8b10f3ac2b6f8.tar.xz tmwa-6a0c11388cb15cc94bffacaedce8b10f3ac2b6f8.zip |
Merge pull request #118 from mekolat/patch-1
do not count hidden players
Diffstat (limited to 'src')
-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 d40977f..0c73b59 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++; } |