Fix GitLab issue #69: repeated knive caveat message
This commit is contained in:
parent
ae6eced72d
commit
bd499dc532
4 changed files with 15 additions and 6 deletions
10
main.c
10
main.c
|
@ -1280,11 +1280,13 @@ static bool do_command(void) {
|
|||
}
|
||||
}
|
||||
|
||||
/* Check to see if the room is dark. If the knife is
|
||||
* here, and it's dark, the knife permanently disappears
|
||||
*/
|
||||
/* Check to see if the room is dark. */
|
||||
game.wzdark = DARK(game.loc);
|
||||
if (game.knfloc != LOC_NOWHERE &&
|
||||
|
||||
/* If the knife is not here it permanently disappears.
|
||||
* Possibly this should fire if the knife is here but
|
||||
* the room is dark? */
|
||||
if (game.knfloc > LOC_NOWHERE &&
|
||||
game.knfloc != game.loc) {
|
||||
game.knfloc = LOC_NOWHERE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue