From f5c2fcb32b0e28fc51be975e0dffc834a4885fd1 Mon Sep 17 00:00:00 2001 From: dokutan <54861821+dokutan@users.noreply.github.com> Date: Wed, 26 Aug 2020 17:35:10 +0200 Subject: [PATCH] Fix gameplay description not working in miketron --- miketron.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/miketron.c b/miketron.c index 8ecd296..5f5f83c 100644 --- a/miketron.c +++ b/miketron.c @@ -348,8 +348,8 @@ void gameplay(void){ printw("survive explosions but cannot cross the trail it has\n"); printw("left behind. Keep it running as much as you can."); refresh(); - erase(); getch(); + erase(); halfdelay(1); } void sigint_handler(int x){ @@ -493,6 +493,8 @@ int main(int argc, char** argv){ } if( input == KEY_F(1) || input=='?' ) help(); + if( input == KEY_F(2) ) + gameplay(); halfspeed=!halfspeed; if( (input=='k' || input==KEY_UP) ){ direction=UP;