summaryrefslogtreecommitdiff
path: root/src/map/pc.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/pc.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/pc.cpp')
-rw-r--r--src/map/pc.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index 70c9087..95bdb8d 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -684,7 +684,6 @@ int pc_authok(AccountId id, int login_id2, TimeT connect_until_time,
// sd->sc_data[i].timer = nullptr;
sd->sc_data[i].val1 = 0;
}
- sd->sc_count = 0;
// パーティー関係の初期化
sd->party_sended = 0;
@@ -1284,7 +1283,6 @@ int pc_calcstatus(dumb_ptr<map_session_data> sd, int first)
}
// スキルやステータス異常による残りのパラメータ補正
- if (sd->sc_count)
{
// ATK/DEF変化形
if (sd->sc_data[StatusChange::SC_POISON].timer) // 毒状態