From 180cc161eec1364ba836030b4951e6743474a03b Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 7 Nov 2006 21:05:46 +0000 Subject: - A few reorders and type-changes in the map_session_data structure for better memory allocation of the variables. Also fixes a size conversion warning. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9169 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/map/map.h b/src/map/map.h index 6f0816c78..270cb549b 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -766,18 +766,17 @@ struct map_session_data { short spiritball, spiritball_old; int spirit_timer[MAX_SKILL_LEVEL]; - int die_counter; - char potion_success_counter; + unsigned char potion_success_counter; //Potion successes in row counter + unsigned char mission_count; //Stores the bounty kill count for TK_MISSION + short mission_mobid; //Stores the target mob_id for TK_MISSION + int die_counter; //Total number of times you've died + int devotion[5]; //Stores the char IDs of chars devoted to. + int reg_num; //Number of registries (type numeric) + int regstr_num; //Number of registries (type string) - int reg_num; struct script_reg *reg; - int regstr_num; struct script_regstr *regstr; - short mission_mobid; //Stores the target mob_id for TK_MISSION - short mission_count; //Stores the bounty kill count for TK_MISSION - int devotion[5]; //Stores the char IDs of chars devoted to. - int trade_partner; struct { struct { -- cgit v1.2.3-60-g2f50