Improved behavior when magic words are said before they're seen.

Note: there is a tiny risk that this could break savefile
compatibility, as I swiped an unused int member in the game structure
and turned it into a bool. int and bool *should* be the same sixe...
This commit is contained in:
Eric S. Raymond 2023-04-05 19:49:38 -04:00
parent 4ce4de190e
commit fe378b9e13
7 changed files with 15 additions and 3 deletions

View file

@ -178,7 +178,7 @@ struct game_t {
int saved; // point penalty for saves
int tally; // count of treasures gained
int thresh; // current threshold for endgame scoring tier
turn_t trndex; // FIXME: not used, remove on next format bump
bool seenbigwords; // have we red the grafitti in the Giant's Room?
turn_t trnluz; // # points lost so far due to turns used
turn_t turns; // counts commands given (ignores yes/no)
char zzword[TOKLEN + 1]; // randomly generated magic word from bird