X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=0dae69f8dbc37c175d25e5b03744c31748546f85;hp=541ae5fe706b63ca53d49352c3b00ad321712b86;hb=4beb2e498570ebfb451947a1fb7809c9a2924263;hpb=9c4c0de38cd7dabbd578527b4f895fe3e0b230a3 diff --git a/scene.c b/scene.c index 541ae5f..0dae69f 100644 --- a/scene.c +++ b/scene.c @@ -599,9 +599,10 @@ int drawFloorRecurse = 2; void drawSquare(int recurseLevel, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2) { - printf("Recurse level %d\n", recurseLevel); + if ( drawFloorRecurse != recurseLevel ) { + printf("Recurse level %d\n", recurseLevel); GLfloat xm = (x1 + x2) / 2.0; GLfloat ym = (y1 + y2) / 2.0; int rnew = recurseLevel + 1;