Prevent command from executing after game is down
Move the gamedown() check from status to may_play_now() so it is checked upon login, before a command is executed and after command completion. This fixes the situation where a player to could execute one more command after the game was down. Report to the deities that the game is down. Remove to duplicate gamedown message.
This commit is contained in:
parent
48cec49fbf
commit
c7e2442d3a
3 changed files with 11 additions and 10 deletions
|
@ -198,10 +198,6 @@ status(void)
|
|||
if (natp->nat_stat == STAT_ACTIVE && (player->nstat & CAP) == 0)
|
||||
pr("You lost your capital... better designate one (see info capital)\n");
|
||||
putnat(natp);
|
||||
if (gamedown() && !player->god) {
|
||||
pr("gamedown\n");
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue