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:
88ac4af
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Fri, 21 Oct 2011 07:38:47 +0000
(15:38 +0800)
committer
Ash Tyndall
<
[email protected]
>
Fri, 21 Oct 2011 07:38:47 +0000
(15:38 +0800)
helper.c
patch
|
blob
|
history
diff --git
a/helper.c
b/helper.c
index
a1f126e
..
55ff95c
100644
(file)
--- a/
helper.c
+++ b/
helper.c
@@
-226,8
+226,8
@@
void drawFloor() {
for ( int tx = -floorSize; tx <= floorSize; tx += textureTileSize ) {
for ( int tz = -floorSize; tz <= floorSize; tz += textureTileSize ) {
int subTileWidth = textureTileSize / divisions;
- for ( int x = 0; x <=
textureTileSize; x += subTileWidth
) {
- for ( int z = 0; z <=
textureTileSize; z += subTileWidth
) {
+ for ( int x = 0; x <=
divisions * 2; x++
) {
+ for ( int z = 0; z <=
divisions * 2; z++
) {
glColor3f( 1.0, 1.0, 1.0 );
printf("Creating a subtile.\n");
UCC
git Repository :: git.ucc.asn.au