Set timestamp automatically on write

Do it in do_write().  Remove the setting of timestamps elsewhere.

This fixes empdump to set timestamps to the current time instead of
zero on import.
This commit is contained in:
Markus Armbruster 2008-03-05 22:43:10 +01:00
parent a680c81110
commit f33b96b1d1
11 changed files with 12 additions and 38 deletions

View file

@ -56,7 +56,6 @@ nat_reset(struct natstr *natp, enum nat_status stat, coord x, coord y)
struct realmstr newrealm;
struct range absrealm;
char buf[1024];
time_t now = time(NULL);
int i;
natp->nat_stat = stat;
@ -76,7 +75,6 @@ nat_reset(struct natstr *natp, enum nat_status stat, coord x, coord y)
newrealm.r_xh = absrealm.hx;
newrealm.r_yl = absrealm.ly;
newrealm.r_yh = absrealm.hy;
newrealm.r_timestamp = now;
putrealm(&newrealm);
}
if (players_at_00) {