Put a timestamp into struct emptypedstr
Make sure all members of unit empobj_storage share it. Add matching timestamp member to struct comstr, struct empobj, struct gamestr, struct lonstr, struct natstr, struct nwsstr, struct trdstr, struct trtstr. The timestamp isn't yet set for these. To be fixed. Move the timestamp member to the right place in struct lndstr, struct loststr, struct realmstr, struct nukstr, struct plnstr, struct sctstr, struct shpstr.
This commit is contained in:
parent
e1a68c721d
commit
a680c81110
16 changed files with 23 additions and 20 deletions
|
@ -64,6 +64,7 @@ struct shpstr {
|
|||
/* initial part must match struct empobj */
|
||||
short ef_type;
|
||||
short shp_uid; /* unit id (ship #) */
|
||||
time_t shp_timestamp; /* Last time this ship was touched. */
|
||||
natid shp_own; /* owner's country num */
|
||||
coord shp_x; /* x location in abs coords */
|
||||
coord shp_y; /* y location in abs coords */
|
||||
|
@ -90,7 +91,6 @@ struct shpstr {
|
|||
short shp_pstage; /* plague stage */
|
||||
short shp_ptime; /* how many etus remain in this stage */
|
||||
short shp_access; /* Last tick mob was updated (MOB_ACCESS) */
|
||||
time_t shp_timestamp; /* Last time this ship was touched. */
|
||||
unsigned char shp_mobquota; /* mobility quota */
|
||||
char shp_path[MAXSHPPATH];
|
||||
short shp_follow;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue