X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=main.c;h=371b3b67d7a1af9ae14e018f1d372f00927e7d2f;hp=94f2b45b9fe30d5c2251e9d9b431cee7af9c028e;hb=b125fe7b2ad09754364f8bef1f3d72a5837c7b82;hpb=3971a61ab0d8b4142578e3e772b6680520c3806a diff --git a/main.c b/main.c index 94f2b45..371b3b6 100644 --- a/main.c +++ b/main.c @@ -1125,6 +1125,12 @@ static bool do_command() if (!get_command_input(&command)) return false; + /* Every input, check "foobar" flag. If zero, nothing's going + * on. If pos, make neg. If neg, he skipped a word, so make it + * zero. + */ + game.foobar = (game.foobar > WORD_EMPTY) ? -game.foobar : WORD_EMPTY; + ++game.turns; preprocess_command(&command); }