From 20caa41aeae6e49375aeb187c06dc077e330b414 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 3 Dec 2016 06:19:35 +0100 Subject: 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 --- src/map/pc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/pc.h') 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). -- cgit v1.2.3-60-g2f50