From: Ash Tyndall Date: Fri, 21 Oct 2011 07:38:47 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=d8d5579c649c858a37a1aa0c4c3cd94371d9c39c --- diff --git a/helper.c b/helper.c index a1f126e..55ff95c 100644 --- 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");