summaryrefslogtreecommitdiff
path: root/src/map/script.c
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/map/script.c
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/map/script.c')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 58dd65173..09f6377ef 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -15525,7 +15525,7 @@ BUILDIN(getlook)
case LOOK_HEAD_MID: val = sd->status.head_mid; break; //5
case LOOK_HAIR_COLOR: val = sd->status.hair_color; break; //6
case LOOK_CLOTHES_COLOR: val = sd->status.clothes_color; break; //7
- case LOOK_SHIELD: val = sd->status.shield; break; //8
+ case LOOK_SHIELD: val = sd->status.look.shield; break; //8
case LOOK_SHOES: break; //9
case LOOK_ROBE: val = sd->status.robe; break; //12
case LOOK_BODY2: val=sd->status.body; break; //13