From: Ash Tyndall Date: Thu, 20 Oct 2011 13:23:44 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=cf95a93549b83c6bddf0268f4ccb91c8854c8f2d;p=atyndall%2Fcits2231.git --- diff --git a/helper.c b/helper.c index 5c82e41..20ce8b5 100644 --- a/helper.c +++ b/helper.c @@ -261,10 +261,11 @@ void drawSquare(int recurseLevel, float x1, float z1, float x2, float z2) { else glColor3f(0.0f,0.0f,0.0f); //black glBegin(GL_QUADS); - glVertex3f( x*SizeX,0.0, y*SizeY); - glVertex3f((x+1)*SizeX,0.0, y*SizeY); + glVertex3f((x+1)*SizeX,0.0, (y+1)*SizeY); glVertex3f( x*SizeX,0.0, (y+1)*SizeY); + glVertex3f( x*SizeX,0.0, y*SizeY); + glVertex3f((x+1)*SizeX,0.0, y*SizeY); glEnd(); }