]> skyeroc.xyz Git - dgamelaunch/commitdiff
Reset offset to a lower value if not enough games exist anymore.
authorJilles Tjoelker <jilles@stack.nl>
Fri, 12 Mar 2004 16:24:18 +0000 (16:24 +0000)
committerJilles Tjoelker <jilles@stack.nl>
Fri, 12 Mar 2004 16:24:18 +0000 (16:24 +0000)
Avoids things like "(15-8 of 8)".

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@275 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c

index e352540e5452c9a194356c63f3c348b94c572f41..c9c4b7b9b015121879506a56e3efa29986647bd4 100644 (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,