# HG changeset patch # User Extrawurst # Date 1293713440 -3600 # Node ID 4604c914f2ab02795b2676aaa87ac47dba63067f # Parent 34b36b5193afe66b4293a0bb3d838c237cff44e5 removed workaround for dmd-bug #5249 diff -r 34b36b5193af -r 4604c914f2ab trunk/tests/ChipmunkDemos/samples/Plink.d --- a/trunk/tests/ChipmunkDemos/samples/Plink.d Thu Dec 16 00:56:34 2010 +0100 +++ b/trunk/tests/ChipmunkDemos/samples/Plink.d Thu Dec 30 13:50:40 2010 +0100 @@ -64,8 +64,6 @@ cpv( 0, 10), cpv( 15,-15), ]; - - int foo; // Create the static triangles. foreach(i; 0..9){ @@ -74,8 +72,6 @@ cpVect offset; offset.x = (i*80) - 320 + stagger; offset.y = (j*70) - 240; - //BUG: crazy fucking dmd codegen bug when optimizing (2.050) - foo = i; shape = cpSpaceAddShape(space, cpPolyShapeNew(staticBody, 3, tris.ptr, offset)); shape.e = 1.0f; shape.u = 1.0f; diff -r 34b36b5193af -r 4604c914f2ab trunk/tests/ChipmunkDemos/samples/Tumble.d --- 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;