(no commit message)
authorAsh Tyndall <[email protected]>
Fri, 21 Oct 2011 07:38:47 +0000 (15:38 +0800)
committerAsh Tyndall <[email protected]>
Fri, 21 Oct 2011 07:38:47 +0000 (15:38 +0800)
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