From: Ash Tyndall Date: Sat, 8 Oct 2011 05:54:32 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=55e9b34531342047af2a27eaa1e9e7dabe8b8e3b;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index e956c92..64c6c70 100644 --- a/scene.c +++ b/scene.c @@ -285,7 +285,7 @@ void makeMenu() { int addObjectMenu = glutCreateMenu(processObjectEvents); for ( int i = 0; addObjectSubmenu[i]; i++ ) { char name[10]; // buffer to hold name - sprintf(name, "%d-%d", i+1, i+10); + sprintf(name, "%d-%d", i*11 - (i-1), i*11 + 8); glutAddSubMenu( name, addObjectSubmenu[i] ); }