Address GitLab issue #55: water should not be available in endgame.

This commit is contained in:
Eric S. Raymond 2021-02-15 22:16:43 -05:00
parent a251e18682
commit f2f238e9e4
3 changed files with 2891 additions and 2 deletions

View file

@ -1354,8 +1354,8 @@ phase_codes_t action(command_t command)
/* FALL THROUGH */;
else if (command.obj == DWARF && atdwrf(game.loc) > 0)
/* FALL THROUGH */;
else if ((LIQUID() == command.obj && HERE(BOTTLE)) ||
command.obj == LIQLOC(game.loc))
else if (!game.closed && ((LIQUID() == command.obj && HERE(BOTTLE)) ||
command.obj == LIQLOC(game.loc)))
/* FALL THROUGH */;
else if (command.obj == OIL && HERE(URN) && game.prop[URN] != URN_EMPTY) {
command.obj = URN;