diff options
author | Haru <haru@dotalux.com> | 2016-12-03 06:19:35 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2017-09-17 17:48:16 +0200 |
commit | 20caa41aeae6e49375aeb187c06dc077e330b414 (patch) | |
tree | 9e96d78a78005c979e8204da8dd806fc706c6ceb /src/map/status.c | |
parent | a681d759cc887e8adccbd30d3b7a7ca355bbda96 (diff) | |
download | hercules-20caa41aeae6e49375aeb187c06dc077e330b414.tar.gz hercules-20caa41aeae6e49375aeb187c06dc077e330b414.tar.bz2 hercules-20caa41aeae6e49375aeb187c06dc077e330b414.tar.xz hercules-20caa41aeae6e49375aeb187c06dc077e330b414.zip |
Differentiate variables that hold a ViewSprite and a Subtype (part 2)
`sd->status.shield` is renamed to `sd->status.look.shield` and only
holds ViewSprite IDs. Its previous other meaning is now transferred to
`sd->has_shield`, of boolean type (to detect the presence of a shield)
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c index ed29e85be..733eb5f6f 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -4326,7 +4326,7 @@ int status_base_amotion_pc(struct map_session_data *sd, struct status_data *st) amotion = status->dbs->aspd_base[pc->class2idx(sd->status.class)][sd->weapontype1]; if (sd->weapontype > MAX_SINGLE_WEAPON_TYPE) amotion += status->dbs->aspd_base[pc->class2idx(sd->status.class)][sd->weapontype2] / 4; - if ( sd->status.shield ) + if (sd->has_shield) amotion += status->dbs->aspd_base[pc->class2idx(sd->status.class)][MAX_SINGLE_WEAPON_TYPE]; switch (sd->weapontype) { case W_BOW: |