Correct buggy behavior of sign in endgame. Add a test for this.

This commit is contained in:
Eric S. Raymond 2017-06-24 09:30:15 -04:00
parent 2c9c9076b1
commit 0c2803638f
5 changed files with 31 additions and 21 deletions

2
main.c
View file

@ -812,7 +812,7 @@ static bool closecheck(void)
* Reuse sign. */
PUT(GRATE, LOC_SW, 0);
PUT(SIGN, LOC_SW, 0);
++OBJTXT[SIGN];
game.prop[SIGN] = ENDGAME_SIGN;
game.prop[SNAKE] = PUT(SNAKE, LOC_SW, 1);
game.prop[BIRD] = PUT(BIRD, LOC_SW, 1);
game.prop[CAGE] = PUT(CAGE, LOC_SW, 0);