Browse Source

- 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://svn.code.sf.net/p/rathena/svn/trunk@9169 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 18 years ago
parent
commit
5ccc607bfe
1 changed files with 7 additions and 8 deletions
  1. 7 8
      src/map/map.h

+ 7 - 8
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 {