summaryrefslogtreecommitdiff
path: root/src/map/battle.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-11-04 22:41:51 -0800
committerBen Longbons <b.r.longbons@gmail.com>2014-11-04 22:41:53 -0800
commit9c19f89a5fb3947541286b349479eb8276dc8b65 (patch)
tree8e5c5654f48cbc8b3dd06a4b3d4d884eb4b808cd /src/map/battle.cpp
parent0bc322efc087ab0c7b53709e5e20ac76aee761de (diff)
downloadtmwa-9c19f89a5fb3947541286b349479eb8276dc8b65.tar.gz
tmwa-9c19f89a5fb3947541286b349479eb8276dc8b65.tar.bz2
tmwa-9c19f89a5fb3947541286b349479eb8276dc8b65.tar.xz
tmwa-9c19f89a5fb3947541286b349479eb8276dc8b65.zip
Remove sc_count
It was a negligible performance gain during death, but a lot of bugs.
Diffstat (limited to 'src/map/battle.cpp')
-rw-r--r--src/map/battle.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/map/battle.cpp b/src/map/battle.cpp
index 63dc957..f852265 100644
--- a/src/map/battle.cpp
+++ b/src/map/battle.cpp
@@ -856,16 +856,6 @@ eptr<struct status_change, StatusChange, StatusChange::MAX_STATUSCHANGE> battle_
return nullptr;
}
-short *battle_get_sc_count(dumb_ptr<block_list> bl)
-{
- nullpo_retr(nullptr, bl);
- if (bl->bl_type == BL::MOB)
- return &bl->is_mob()->sc_count;
- else if (bl->bl_type == BL::PC)
- return &bl->is_player()->sc_count;
- return nullptr;
-}
-
Opt1 *battle_get_opt1(dumb_ptr<block_list> bl)
{
nullpo_retn(bl);