Fix game watching when loggedin.

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@502 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Pasi Kallinen 2009-10-18 19:15:46 +00:00
parent f07d814c27
commit 7a00201cea
2 changed files with 3 additions and 3 deletions

View File

@ -409,7 +409,7 @@ inprogressmenu (int gameid)
graceful_exit(70);
}
games = populate_games (gameid, &len, me);
games = populate_games (gameid, &len, NULL); /* FIXME: should be 'me' instead of 'NULL' */
games = sort_games (games, len, sortmode);
while (1)
@ -625,7 +625,7 @@ watchgame:
if (selected >= 0 && selected < len)
selectedgame = strdup(games[selected]->name);
games = populate_games (gameid, &len, me);
games = populate_games (gameid, &len, NULL); /* FIXME: should be 'me' instead of 'NULL' */
games = sort_games (games, len, sortmode);
if (selectedgame) {
selected = -1;

View File

@ -270,7 +270,7 @@ dgl_exec_cmdqueue(struct dg_cmdpart *queue, int game, struct dg_user *me)
if (loggedin) change_email();
break;
case DGLCMD_WATCH_MENU:
inprogressmenu(game);
inprogressmenu(-1);
break;
case DGLCMD_LOGIN:
if (!loggedin) loginprompt(0);