Move update_timeused() from may_play_now() back to callers

This backs out a small part of commit d1ff2a60, for clarity.

While there, oops when may_play_now() is called with incorrect natp
argument.
This commit is contained in:
Markus Armbruster 2009-02-08 14:16:57 +01:00
parent 6a1078f8a0
commit f1d89514a5
2 changed files with 7 additions and 2 deletions

View file

@ -273,7 +273,8 @@ int
may_play_now(struct natstr *natp, time_t now,
int suppress_deity_message)
{
update_timeused(now);
if (CANT_HAPPEN(natp->nat_cnum != player->cnum))
return 0;
if (!gamehours(now)) {
if (natp->nat_stat != STAT_GOD || !suppress_deity_message)