Actually mark the game entry as selected when using '/' or '*' in watching menu.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@490 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
29f507bda8
commit
1a7f346b20
|
@ -476,7 +476,7 @@ inprogressmenu (int gameid)
|
|||
if (max_height+offset < len)
|
||||
mvprintw ((btm+top_banner_hei), 1, "(%d-%d of %d)", offset + 1, offset + i, len);
|
||||
else
|
||||
mvprintw ((btm+top_banner_hei), 1, "(end)");
|
||||
mvprintw ((btm+top_banner_hei), 4, "(end)");
|
||||
mvaddstr ((btm+2+top_banner_hei), 1, "Watch which game? ('?' for help) => ");
|
||||
} else {
|
||||
mvprintw(top_banner_hei,4,"Sorry, no games available for viewing.");
|
||||
|
@ -490,6 +490,7 @@ inprogressmenu (int gameid)
|
|||
case '*':
|
||||
if (len > 0) {
|
||||
idx = random() % len;
|
||||
selected = idx;
|
||||
goto watchgame;
|
||||
}
|
||||
break;
|
||||
|
@ -510,6 +511,7 @@ inprogressmenu (int gameid)
|
|||
if (match > -1) {
|
||||
if (!strcmp(games[match]->ttyrec_fn + strlen (games[match]->ttyrec_fn) - 6, ".nhext")) break;
|
||||
idx = match;
|
||||
selected = idx;
|
||||
goto watchgame;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue