Skip to content

Commit

Permalink
Workaround for compiler bug
Browse files Browse the repository at this point in the history
  • Loading branch information
OlaOst committed Apr 6, 2012
1 parent cfab8e0 commit e1d653c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SubSystem/Graphics.d
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,10 @@ public:
glEnd();

// draw radar blips - with logarithmic distance and redshifted
foreach (component; filter!(component => component.hideFromRadar == false && (component.position - centerComponent.position).length < 3500.0)(components))

// when the foreach with the length check is compiled, we get a Assertion failure: '!vthis->csym' on line 681 in file 'glue.c' when using dmd 2.058
//foreach (component; filter!(component => component.hideFromRadar == false && (centerComponent.position - component.position).length < 3500.0)(components))
foreach (component; filter!(component => component.hideFromRadar == false)(components))
{
glPointSize(max((1+component.radius)*2-1, 1.0));

Expand Down

0 comments on commit e1d653c

Please sign in to comment.