summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-07 21:05:46 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-07 21:05:46 +0000
commit180cc161eec1364ba836030b4951e6743474a03b (patch)
tree6538b4b98b1afc55b10d44f5be605ce8e2433035 /src
parentf0fef787616b240f4d4dece0973ec20b3464a0e7 (diff)
downloadhercules-180cc161eec1364ba836030b4951e6743474a03b.tar.gz
hercules-180cc161eec1364ba836030b4951e6743474a03b.tar.bz2
hercules-180cc161eec1364ba836030b4951e6743474a03b.tar.xz
hercules-180cc161eec1364ba836030b4951e6743474a03b.zip
- 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
Diffstat (limited to 'src')
-rw-r--r--src/map/map.h15
1 files 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 {