summaryrefslogtreecommitdiff
path: root/src/common/mmo.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-12-03 06:19:35 +0100
committerHaru <haru@dotalux.com>2017-09-17 17:48:16 +0200
commit20caa41aeae6e49375aeb187c06dc077e330b414 (patch)
tree9e96d78a78005c979e8204da8dd806fc706c6ceb /src/common/mmo.h
parenta681d759cc887e8adccbd30d3b7a7ca355bbda96 (diff)
downloadhercules-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/common/mmo.h')
-rw-r--r--src/common/mmo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h
index 1ade0caa9..4b120e812 100644
--- a/src/common/mmo.h
+++ b/src/common/mmo.h
@@ -614,8 +614,8 @@ struct mmo_charstatus {
struct {
short weapon; ///< Weapon view sprite id.
+ short shield; ///< Shield view sprite id.
} look;
- short shield; // view-id
short head_top,head_mid,head_bottom;
short robe;