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

@ -118,11 +118,6 @@ lnd_prewrite(int n, void *ptr)
struct plnstr *pp;
int i;
llp->ef_type = EF_LAND;
llp->lnd_uid = n;
time(&llp->lnd_timestamp);
if (llp->lnd_own && llp->lnd_effic < LAND_MINEFF) {
makelost(EF_LAND, llp->lnd_own, llp->lnd_uid,
llp->lnd_x, llp->lnd_y);