From d8d5579c649c858a37a1aa0c4c3cd94371d9c39c Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Fri, 21 Oct 2011 15:38:47 +0800 Subject: [PATCH] --- helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.20.1