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 --------------------- */
|
/* ------------------ Status von Einheiten --------------------- */
|
||||||
|
|
||||||
typedef int status_t;
|
typedef unsigned char status_t;
|
||||||
enum {
|
enum {
|
||||||
ST_AGGRO,
|
ST_AGGRO,
|
||||||
ST_FIGHT,
|
ST_FIGHT,
|
||||||
|
@ -474,7 +474,7 @@ enum {
|
||||||
|
|
||||||
/* ----------------- Parameter --------------------------------- */
|
/* ----------------- Parameter --------------------------------- */
|
||||||
|
|
||||||
typedef int param_t;
|
typedef unsigned char param_t;
|
||||||
enum {
|
enum {
|
||||||
P_LOCALE,
|
P_LOCALE,
|
||||||
P_ANY,
|
P_ANY,
|
||||||
|
|
|
@ -82,8 +82,8 @@ typedef struct unit {
|
||||||
struct faction *faction;
|
struct faction *faction;
|
||||||
struct building *building;
|
struct building *building;
|
||||||
struct ship *ship;
|
struct ship *ship;
|
||||||
short age;
|
|
||||||
unsigned short number;
|
unsigned short number;
|
||||||
|
short age;
|
||||||
|
|
||||||
/* skill data */
|
/* skill data */
|
||||||
short skill_size;
|
short skill_size;
|
||||||
|
|
|
@ -363,7 +363,6 @@ parse_calendar(xmlDocPtr doc)
|
||||||
|
|
||||||
seasons = nsetSeasons->nodeNr;
|
seasons = nsetSeasons->nodeNr;
|
||||||
seasonnames = malloc(sizeof(char *) * seasons);
|
seasonnames = malloc(sizeof(char *) * seasons);
|
||||||
storms = malloc(sizeof(int) * seasons);
|
|
||||||
|
|
||||||
for (i=0;i!=nsetSeasons->nodeNr;++i) {
|
for (i=0;i!=nsetSeasons->nodeNr;++i) {
|
||||||
xmlNodePtr season = nsetSeasons->nodeTab[i];
|
xmlNodePtr season = nsetSeasons->nodeTab[i];
|
||||||
|
|
Loading…
Reference in New Issue