summaryrefslogtreecommitdiff
path: root/src/map/mob.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-07-15 21:22:19 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-07-16 13:47:36 -0700
commitc999af595f4a8f7d30b6d7c822e2a1caf3298389 (patch)
tree27c22a95ff9342bbdc1e94fb4806279f61f058af /src/map/mob.cpp
parent17605f7782ac9a73a3dacf6ce27e5dae36160f01 (diff)
downloadtmwa-c999af595f4a8f7d30b6d7c822e2a1caf3298389.tar.gz
tmwa-c999af595f4a8f7d30b6d7c822e2a1caf3298389.tar.bz2
tmwa-c999af595f4a8f7d30b6d7c822e2a1caf3298389.tar.xz
tmwa-c999af595f4a8f7d30b6d7c822e2a1caf3298389.zip
Revert bounds checks and go back to signed integers
Diffstat (limited to 'src/map/mob.cpp')
-rw-r--r--src/map/mob.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/map/mob.cpp b/src/map/mob.cpp
index f73dc89..1fd8cf3 100644
--- a/src/map/mob.cpp
+++ b/src/map/mob.cpp
@@ -2461,9 +2461,6 @@ int mob_damage(dumb_ptr<block_list> src, dumb_ptr<mob_data> md, int damage,
}
}
- if (damage > md->hp)
- damage = md->hp;
-
md->hp -= damage;
if (md->hp > 0)