diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-07-05 12:59:52 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2015-07-05 12:59:52 -0400 |
commit | 7a561ba98e5908d4887a15148487ee1800312e1f (patch) | |
tree | 1e7e27dc8f07f25ef53aaaad2378e3f086fb4247 /src/map/map.cpp | |
parent | aaa7c09e2d0846734213dd6577b7c99dfe8c79c0 (diff) | |
download | tmwa-7a561ba98e5908d4887a15148487ee1800312e1f.tar.gz tmwa-7a561ba98e5908d4887a15148487ee1800312e1f.tar.bz2 tmwa-7a561ba98e5908d4887a15148487ee1800312e1f.tar.xz tmwa-7a561ba98e5908d4887a15148487ee1800312e1f.zip |
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) |