Restore the previous watching-menu behaviour: don't require enter keypress to watch.

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@495 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Pasi Kallinen 2009-10-18 17:09:27 +00:00
parent 06e783db08
commit ad13d4eb7b
1 changed files with 7 additions and 3 deletions

View File

@ -393,6 +393,8 @@ inprogressmenu (int gameid)
int title_attr = A_STANDOUT;
int selected_attr = A_BOLD;
int require_enter = 0; /* TODO: make configurable */
if (sortmode == NUM_SORTMODES)
sortmode = globalconfig.sortmode;
@ -574,9 +576,11 @@ inprogressmenu (int gameid)
break;
idx = sidx + offset;
if (selected == idx) selected = -1;
else selected = idx;
break;
if (require_enter) {
if (selected == idx) selected = -1;
else selected = idx;
break;
} else selected = idx;
watchgame:
/* valid choice has been made */