summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2016-11-27 13:30:40 -0500
committergumi <mekolat@users.noreply.github.com>2016-11-27 13:30:40 -0500
commit872a913d2d3958f4010119b037b8b32cdc67566f (patch)
tree0cd2bca0cd5f6b2b19994530e806e12e42e9d83d
parentf01be24f9ae62db8f32f8c71d9a6890b63e87d67 (diff)
downloadtmwa-872a913d2d3958f4010119b037b8b32cdc67566f.tar.gz
tmwa-872a913d2d3958f4010119b037b8b32cdc67566f.tar.bz2
tmwa-872a913d2d3958f4010119b037b8b32cdc67566f.tar.xz
tmwa-872a913d2d3958f4010119b037b8b32cdc67566f.zip
Revert "Decrease the map npc counter when a npc is deleted"
This reverts commit 4a69f1b47d4bd74b988b4d4fe66fd43a26aae123.
-rw-r--r--src/map/map.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/map/map.cpp b/src/map/map.cpp
index 08d5ceb..e7b0da8 100644
--- a/src/map/map.cpp
+++ b/src/map/map.cpp
@@ -208,9 +208,6 @@ int map_delblock(dumb_ptr<block_list> bl)
return 0;
}
- if (bl->bl_type == BL::NPC)
- bl->bl_m->npc_num--;
-
if (bl->bl_type == BL::PC)
bl->bl_m->users--;