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:
parent
88811726d0
commit
54e3b2a55f
|
@ -319,6 +319,14 @@ inprogressmenu ()
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
if (len == 0)
|
||||||
|
offset = 0;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
while (offset >= len && offset >= 14)
|
||||||
|
offset -= 14;
|
||||||
|
}
|
||||||
|
|
||||||
clear ();
|
clear ();
|
||||||
drawbanner (1, 1);
|
drawbanner (1, 1);
|
||||||
mvprintw (3, 1,
|
mvprintw (3, 1,
|
||||||
|
|
Loading…
Reference in New Issue