Rearrange struct sctstr slightly to expose commonalities with units

Nice bonus: space needed for sectors shrinks some 4%.  Size of game
state could shrink perhaps 1-2%.
This commit is contained in:
Markus Armbruster 2009-12-31 11:50:22 +01:00
parent aa659c7754
commit 3a5e23a020
3 changed files with 6 additions and 5 deletions

View file

@ -64,11 +64,12 @@ struct empobj {
natid own; /* valid if EFF_OWNER is in table's flags */
coord x; /* valid if EFF_XY is in table's flags */
coord y; /* valid if EFF_XY is in table's flags */
signed char type; /* valid for sectors and units */
/* remaining are valid for units */
/* remaining are valid for sectors and units */
signed char type;
signed char effic;
signed char mobil;
unsigned char off;
/* remaining are valid for units */
short tech;
char group; /* valid if EFF_GROUP is in table's flags */
coord opx, opy;