diff trunk/tests/ChipmunkDemos/samples/Tumble.d @ 31:4604c914f2ab default tip

removed workaround for dmd-bug #5249
author Extrawurst
date Thu, 30 Dec 2010 13:50:40 +0100
parents af2f61a96318
children
line wrap: on
line diff
--- a/trunk/tests/ChipmunkDemos/samples/Tumble.d	Thu Dec 16 00:56:34 2010 +0100
+++ b/trunk/tests/ChipmunkDemos/samples/Tumble.d	Thu Dec 30 13:50:40 2010 +0100
@@ -82,15 +82,11 @@
 	// I'm just doing it to demonstrate the cpSpaceRehashStatic() function.
 	staticBody.w = 0.4f;
 	
-	int foo;
 	// Add the bricks.
 	for(int i=0; i<3; i++){
 		for(int j=0; j<7; j++){
 			_body = cpSpaceAddBody(space, cpBodyNew(1.0f, cpMomentForPoly(1.0f, num, verts.ptr, cpvzero)));
 			_body.p = cpv(i*60 - 150, j*30 - 150);
-	
-			//BUG: crazy fucking dmd codegen bug when optimizing (2.050)
-			foo = i+j;
 			
 			shape = cpSpaceAddShape(space, cpPolyShapeNew(_body, num, verts.ptr, cpvzero));
 			shape.e = 0.0f; shape.u = 0.7f;