(no commit message)
authorAsh Tyndall <[email protected]>
Sat, 8 Oct 2011 05:52:59 +0000 (13:52 +0800)
committerAsh Tyndall <[email protected]>
Sat, 8 Oct 2011 05:52:59 +0000 (13:52 +0800)
scene.c

diff --git a/scene.c b/scene.c
index accd01f..4ab2ecf 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -274,7 +274,8 @@ void makeMenu() {
 \r
   for( int i = 0; i < menuNumber; i++ ) {\r
     addObjectSubmenu[i] = glutCreateMenu(processObjectEvents);\r
-    for ( int j = i; j < (i+9); j++ ) {\r
+    int startNum = i*11 - (i-1);\r
+    for ( int j = startNum; j < (startNum+9); j++ ) {\r
       if ( !objectMenuEntries[j] ) break; // Detect if we've reached the end of the array\r
       glutAddMenuEntry( objectMenuEntries[j], j );\r
     }\r

UCC git Repository :: git.ucc.asn.au