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/pc.h | |
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/pc.h')
-rw-r--r-- | src/map/pc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/pc.h b/src/map/pc.h index 62129b5ae..8615f00f2 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -308,6 +308,7 @@ struct map_session_data { short nameid; int64 tick; } item_delay[MAX_ITEMDELAYS]; // [Paradox924X] + bool has_shield; ///< Whether the character is wearing a shield. int16 weapontype; ///< Weapon type considering both hands (@see enum weapon_type). int16 weapontype1; ///< Weapon type in the right/primary hand (@see enum weapon_type). int16 weapontype2; ///< Weapon type in the left/secondary hand (@see enum weapon_type). |