forked from github/server
reduced the size of some data types (won't help much, but might help a little)
This commit is contained in:
parent
b95b7fd9b1
commit
01fd653508
|
@ -462,7 +462,7 @@ extern const char *keywords[MAXKEYWORDS];
|
|||
|
||||
/* ------------------ Status von Einheiten --------------------- */
|
||||
|
||||
typedef int status_t;
|
||||
typedef unsigned char status_t;
|
||||
enum {
|
||||
ST_AGGRO,
|
||||
ST_FIGHT,
|
||||
|
@ -474,7 +474,7 @@ enum {
|
|||
|
||||
/* ----------------- Parameter --------------------------------- */
|
||||
|
||||
typedef int param_t;
|
||||
typedef unsigned char param_t;
|
||||
enum {
|
||||
P_LOCALE,
|
||||
P_ANY,
|
||||
|
|
|
@ -82,8 +82,8 @@ typedef struct unit {
|
|||
struct faction *faction;
|
||||
struct building *building;
|
||||
struct ship *ship;
|
||||
short age;
|
||||
unsigned short number;
|
||||
short age;
|
||||
|
||||
/* skill data */
|
||||
short skill_size;
|
||||
|
|
|
@ -363,7 +363,6 @@ parse_calendar(xmlDocPtr doc)
|
|||
|
||||
seasons = nsetSeasons->nodeNr;
|
||||
seasonnames = malloc(sizeof(char *) * seasons);
|
||||
storms = malloc(sizeof(int) * seasons);
|
||||
|
||||
for (i=0;i!=nsetSeasons->nodeNr;++i) {
|
||||
xmlNodePtr season = nsetSeasons->nodeTab[i];
|
||||
|
|
Loading…
Reference in New Issue