Permalink
Browse files

fix ETRD creating plasma as if it were created by the brush (-2)

  • Loading branch information...
jacob1 committed Sep 1, 2015
1 parent 2e32fba commit 5433766311042ec7d9ac42ca6283186b800c99fe
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/simulation/Simulation.cpp
@@ -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;
}
@@ -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;

0 comments on commit 5433766

Please sign in to comment.