Skip to content

Commit

Permalink
fix ETRD creating plasma as if it were created by the brush (-2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Sep 1, 2015
1 parent 2e32fba commit 5433766
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/simulation/Simulation.cpp
Expand Up @@ -1545,19 +1545,19 @@ void Simulation::CreateLine(int x1, int y1, int x2, int y2, int c)
for (x=x1; x<=x2; x++)
{
if (reverseXY)
create_part(-2, y, x, c);
create_part(-1, y, x, c);
else
create_part(-2, x, y, c);
create_part(-1, x, y, c);
e += de;
if (e >= 0.5f)
{
y += sy;
if ((y1<y2) ? (y<=y2) : (y>=y2))
{
if (reverseXY)
create_part(-2, y, x, c);
create_part(-1, y, x, c);
else
create_part(-2, x, y, c);
create_part(-1, x, y, c);
}
e -= 1.0f;
}
Expand Down Expand Up @@ -1864,6 +1864,7 @@ int Simulation::nearest_part(int ci, int t, int max_d)
return id;
}

// unused function
void Simulation::create_arc(int sx, int sy, int dx, int dy, int midpoints, int variance, int type, int flags)
{
int i;
Expand Down

0 comments on commit 5433766

Please sign in to comment.