Add a watching-menu command to start watching a random game.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@489 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
b841c2801c
commit
29f507bda8
|
@ -487,6 +487,12 @@ inprogressmenu (int gameid)
|
|||
|
||||
switch ((menuchoice = getch ()))
|
||||
{
|
||||
case '*':
|
||||
if (len > 0) {
|
||||
idx = random() % len;
|
||||
goto watchgame;
|
||||
}
|
||||
break;
|
||||
case '?':
|
||||
(void) runmenuloop(dgl_find_menu("watchmenu_help"));
|
||||
break;
|
||||
|
@ -2035,6 +2041,8 @@ main (int argc, char** argv)
|
|||
}
|
||||
setproctitle("<Anonymous>");
|
||||
|
||||
srand(time(0));
|
||||
|
||||
create_config();
|
||||
|
||||
/* signal handlers */
|
||||
|
|
|
@ -2,12 +2,13 @@
|
|||
|
||||
Help for watching-menu
|
||||
----------------------
|
||||
? shows this help.
|
||||
? show this help.
|
||||
> < next/previous page.
|
||||
. changes sorting method.
|
||||
. change sorting method.
|
||||
q Q return to main menu.
|
||||
a-zA-Z selects the game entry.
|
||||
enter starts showing the selected game.
|
||||
a-zA-Z select a game entry.
|
||||
enter start showing the selected game.
|
||||
* start showing a randomly selected game.
|
||||
|
||||
|
||||
While watching a game
|
||||
|
@ -18,4 +19,4 @@
|
|||
|
||||
|
||||
|
||||
Press 'q' or space to return to the watching menu.
|
||||
Press 'q' or space to return to the watching menu.
|
||||
|
|
Loading…
Reference in New Issue