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

@ -51,7 +51,6 @@ makelost(short type, natid owner, short id, coord x, coord y)
lost.lost_id = id;
lost.lost_x = x;
lost.lost_y = y;
time(&lost.lost_timestamp);
putlost(n, &lost);
}
@ -66,7 +65,6 @@ makenotlost(short type, natid owner, short id, coord x, coord y)
return;
getlost(n, &lost);
lost.lost_owner = 0;
lost.lost_timestamp = 0;
putlost(n, &lost);
}