git.ucc.asn.au
/
atyndall
/
cits2231.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb5b2a1
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Sat, 8 Oct 2011 06:05:24 +0000
(14:05 +0800)
committer
Ash Tyndall
<
[email protected]
>
Sat, 8 Oct 2011 06:05:24 +0000
(14:05 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
882b7cc
..
c7d5318
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-286,7
+286,11
@@
void makeMenu() {
for ( int i = 0; i < menuNumber; i++ ) {
\r
char name[10]; // buffer to hold name
\r
int startNum = i*11 - (i-1);
\r
- sprintf(name, "%d-%d", startNum, startNum + 9);
\r
+ int endNum = startNum + 9;
\r
+ if ( i == menuNumber - 1 ) { // We're on the last one
\r
+ endNum = startNum + 4;
\r
+ }
\r
+ sprintf(name, "%d-%d", startNum, endNum);
\r
glutAddSubMenu( name, addObjectSubmenu[i] );
\r
}
\r
\r
UCC
git Repository :: git.ucc.asn.au