diff options
author | meko <mekolat@users.noreply.github.com> | 2015-07-05 13:18:09 -0400 |
---|---|---|
committer | meko <mekolat@users.noreply.github.com> | 2015-07-05 13:18:09 -0400 |
commit | 98e908eec29e9b5b02fb7d7bf29886dfeb98c7dd (patch) | |
tree | 3c6c6812614dd5e77a65450176b9cc94f2a41d71 /src/map/map.cpp | |
parent | aaa7c09e2d0846734213dd6577b7c99dfe8c79c0 (diff) | |
parent | 21b5b56e7428a85c2dd6f50d19ca966b964d2bd1 (diff) | |
download | tmwa-98e908eec29e9b5b02fb7d7bf29886dfeb98c7dd.tar.gz tmwa-98e908eec29e9b5b02fb7d7bf29886dfeb98c7dd.tar.bz2 tmwa-98e908eec29e9b5b02fb7d7bf29886dfeb98c7dd.tar.xz tmwa-98e908eec29e9b5b02fb7d7bf29886dfeb98c7dd.zip |
Merge pull request #126 from mekolat/fix2v15.7.06
fix getmapusers
Diffstat (limited to 'src/map/map.cpp')
-rw-r--r-- | src/map/map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<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 && !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<block_list> 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) |