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

@ -231,7 +231,10 @@ static phase_codes_t bigwords(vocab_t id)
}
} else {
/* Magic-word sequebce was started but is incorrect */
rspeak(START_OVER);
if (settings.oldstyle || game.seenbigwords)
rspeak(START_OVER);
else
rspeak(WELL_POINTLESS);
game.foobar = WORD_EMPTY;
return GO_CLEAROBJ;
}