From f3753f1cd474a84748b88991f74bcaa4f590f4ff Mon Sep 17 00:00:00 2001 From: ultramage Date: Fri, 9 Nov 2007 22:42:56 +0000 Subject: Replaced several 'int' variables with enums that they represent. Expanded weapon_type enum with dual-wield constants (bugreport:384). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11704 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/mmo.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/common/mmo.h') diff --git a/src/common/mmo.h b/src/common/mmo.h index d971e96e6..aa928fb9b 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -111,14 +111,14 @@ struct item { int id; short nameid; short amount; - unsigned short equip; + unsigned short equip; // location(s) where item is equipped (using enum equip_pos for bitmasking) char identify; char refine; char attribute; short card[MAX_SLOTS]; }; -struct point{ +struct point { unsigned short map; short x,y; }; @@ -217,7 +217,8 @@ struct mmo_charstatus { int party_id,guild_id,pet_id,hom_id; int fame; - short weapon,shield; + enum weapon_type weapon; + short shield; // view-id short head_top,head_mid,head_bottom; char name[NAME_LENGTH]; -- cgit v1.2.3-70-g09d2