comparison 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
comparison
equal deleted inserted replaced
104:fbc75509f4cd 105:f0073eb75a6a
265 } 265 }
266 266
267 cw = newwin(LINES, COLS, 0, 0); 267 cw = newwin(LINES, COLS, 0, 0);
268 mw = newwin(LINES, COLS, 0, 0); 268 mw = newwin(LINES, COLS, 0, 0);
269 hw = newwin(LINES, COLS, 0, 0); 269 hw = newwin(LINES, COLS, 0, 0);
270 keypad(cw, 1);
270 271
271 mpos = 0; 272 mpos = 0;
272 mvwprintw(cw, 0, 0, "%s: %s", file, ctime(&sbuf2.st_mtime)); 273 mvwprintw(cw, 0, 0, "%s: %s", file, ctime(&sbuf2.st_mtime));
273 274
274 /* defeat multiple restarting from the same place */ 275 /* defeat multiple restarting from the same place */