(no commit message)
authorAsh Tyndall <[email protected]>
Thu, 20 Oct 2011 13:27:53 +0000 (21:27 +0800)
committerAsh Tyndall <[email protected]>
Thu, 20 Oct 2011 13:27:53 +0000 (21:27 +0800)
helper.c

index 20ce8b5..bb57603 100644 (file)
--- a/helper.c
+++ b/helper.c
@@ -253,8 +253,8 @@ void drawSquare(int recurseLevel, float x1, float z1, float x2, float z2) {
        unsigned int SizeY = 2;
 
   
-       for (unsigned int x =0;x<GridSizeX;++x)
-               for (unsigned int y =0;y<GridSizeY;++y)
+       for (unsigned int x =-GridSizeX;x<GridSizeX;++x)
+               for (unsigned int y =-GridSizeY;y<GridSizeY;++y)
                {
                        if ((x+y)%2) //modulo 2
                                glColor3f(1.0f,1.0f,1.0f); //white

UCC git Repository :: git.ucc.asn.au