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
|
@ -44,6 +44,7 @@ struct nukstr {
|
|||
/* initial part must match struct empobj */
|
||||
short ef_type;
|
||||
short nuk_uid;
|
||||
time_t nuk_timestamp; /* Last time this nuke was touched */
|
||||
natid nuk_own;
|
||||
coord nuk_x, nuk_y; /* current loc of device */
|
||||
signed char nuk_type; /* index in nchr[] */
|
||||
|
@ -59,7 +60,6 @@ struct nukstr {
|
|||
short nuk_ship; /* currently aboard ship (unused) */
|
||||
short nuk_plane; /* currently aboard plane */
|
||||
short nuk_land; /* currently aboard land (unused) */
|
||||
time_t nuk_timestamp; /* Last time this nuke was touched */
|
||||
};
|
||||
|
||||
struct nchrstr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue