From a681d759cc887e8adccbd30d3b7a7ca355bbda96 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 3 Dec 2016 03:41:08 +0100 Subject: Differentiate variables that hold a ViewSprite and a weapon Subtype `sd->status.weapon` is renamed to `sd->status.look.weapon` and only holds ViewSprite IDs. Its previous other meaning is now transferred to `sd->weapontype` (holding the currently equipped weapon type, considering both hands at once) Signed-off-by: Haru --- src/common/mmo.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/mmo.h b/src/common/mmo.h index 7670a7ac8..1ade0caa9 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -612,7 +612,9 @@ struct mmo_charstatus { int spear_faith, spear_calls; int sword_faith, sword_calls; - short weapon; // enum weapon_type + struct { + short weapon; ///< Weapon view sprite id. + } look; short shield; // view-id short head_top,head_mid,head_bottom; short robe; -- cgit v1.2.3-70-g09d2