Mercurial > hg > early-roguelike
diff srogue/save.c @ 105:f0073eb75a6a
srogue: enable the keypad when restoring.
keypad() was only being called when starting a new game, which meant
the arrow keys did not work when restoring a saved game.
author | John "Elwin" Edwards |
---|---|
date | Tue, 03 Sep 2013 15:39:04 -0700 |
parents | d852b8f088c5 |
children | 458df24e973d |
line wrap: on
line diff
--- a/srogue/save.c Tue Sep 03 14:14:48 2013 -0700 +++ b/srogue/save.c Tue Sep 03 15:39:04 2013 -0700 @@ -267,6 +267,7 @@ cw = newwin(LINES, COLS, 0, 0); mw = newwin(LINES, COLS, 0, 0); hw = newwin(LINES, COLS, 0, 0); + keypad(cw, 1); mpos = 0; mvwprintw(cw, 0, 0, "%s: %s", file, ctime(&sbuf2.st_mtime));