X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;ds=sidebyside;f=roguelike.c;h=5d4207175f9031e568bb05d0bf90ac862d1fa62a;hb=2f4691b20aaf36f0eb5bc9e4830eabcf74fabed2;hp=d7347261125487598cef36082a5f2c4d2c09c060;hpb=3663e5190d818c51d9b8e8107bf3cc713e0ece03;p=plomrogue diff --git a/roguelike.c b/roguelike.c index d734726..5d42071 100644 --- a/roguelike.c +++ b/roguelike.c @@ -347,14 +347,15 @@ int main (int argc, char *argv[]) { int key; unsigned char quit_called; if (0 == world.interactive) { + unsigned char still_reading_file = 1; int action; while (1) { draw_all_windows (&win_meta); key = getch(); - if (key == get_action_key(world.keybindings, "wait / next turn") ) { + if (1 == still_reading_file && key == get_action_key(world.keybindings, "wait / next turn") ) { action = getc(file); if (EOF == action) - break; + still_reading_file = 0; else if (0 == action) player_wait (&world); else if ('s' == action)