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
|
@ -47,6 +47,7 @@ struct plnstr {
|
|||
/* initial part must match struct empobj */
|
||||
short ef_type;
|
||||
short pln_uid; /* plane unit id */
|
||||
time_t pln_timestamp; /* Last time this plane was touched */
|
||||
natid pln_own; /* owning country */
|
||||
coord pln_x; /* plane x-y */
|
||||
coord pln_y;
|
||||
|
@ -68,7 +69,6 @@ struct plnstr {
|
|||
signed char pln_nuketype; /* type of nuclear armament (if any) */
|
||||
signed char pln_flags; /* State of the plane */
|
||||
short pln_access; /* Last tick mob was updated (MOB_ACCESS) */
|
||||
time_t pln_timestamp; /* Last time this plane was touched */
|
||||
float pln_theta; /* position in orbital sine wave */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue