Ensure the watching menu page isn't outside the list. This can happen when returning
from watching a game on page 2 and there's fewer games being played. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@579 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
16a15a6ff2
commit
8fdf52f018
|
@ -752,6 +752,7 @@ inprogressmenu (int gameid)
|
||||||
drawbanner (&banner, 1, 1);
|
drawbanner (&banner, 1, 1);
|
||||||
|
|
||||||
if (len > 0) {
|
if (len > 0) {
|
||||||
|
while (offset >= len) { offset -= max_height; }
|
||||||
if (offset < 0) offset = 0;
|
if (offset < 0) offset = 0;
|
||||||
mvaddstr (3, 1, "The following games are in progress:");
|
mvaddstr (3, 1, "The following games are in progress:");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue