changeset 146:5a77931393f4

xrogue: add an exit prompt. This gives the player a chance to see the high score list when playing via dgamelaunch.
author John "Elwin" Edwards
date Wed, 20 May 2015 12:51:16 -0400
parents aac28331e71d
children 301ed6992c2e
files xrogue/rip.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/xrogue/rip.c	Wed May 20 08:42:17 2015 -0400
+++ b/xrogue/rip.c	Wed May 20 12:51:16 2015 -0400
@@ -554,6 +554,12 @@
                 else printf("\n");
             }
         }
+        if (flags != SCOREIT)
+        {
+            printf("\n[Press return to exit]");
+            fflush(stdout);
+            fgets(prbuf,80,stdin);
+        }
 /*      if (prflags == EDITSCORE) endwin();*/     /* End editing windowing */
     }
     fseek(outf, 0L, SEEK_SET);