Reset offset to a lower value if not enough games exist anymore.

Avoids things like "(15-8 of 8)".


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@275 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Jilles Tjoelker 2004-03-12 16:24:18 +00:00
parent 88811726d0
commit 54e3b2a55f
1 changed files with 8 additions and 0 deletions

View File

@ -319,6 +319,14 @@ inprogressmenu ()
while (1)
{
if (len == 0)
offset = 0;
else
{
while (offset >= len && offset >= 14)
offset -= 14;
}
clear ();
drawbanner (1, 1);
mvprintw (3, 1,