Permalink
Browse files

Change order in which particles are created by the rectangle and brus…

…h tools

to make liquid movement look less weird in normal gravity
  • Loading branch information...
jacksonmj committed Nov 1, 2014
1 parent 377a992 commit 57409b0b4113c7e08d2dd392584ead248b774cb5
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/simulation/Simulation.cpp
@@ -1248,7 +1248,7 @@ int Simulation::CreateParts(int positionX, int positionY, int c, Brush * cBrush,
int radiusX = cBrush->GetRadius().X, radiusY = cBrush->GetRadius().Y, sizeX = cBrush->GetSize().X, sizeY = cBrush->GetSize().Y;
unsigned char *bitmap = cBrush->GetBitmap();
for(int y = 0; y < sizeY; y++)
for(int y = sizeY-1; y >=0; y--)
{
for(int x = 0; x < sizeX; x++)
{
@@ -1431,7 +1431,7 @@ void Simulation::CreateBox(int x1, int y1, int x2, int y2, int c, int flags)
y2 = y1;
y1 = j;
}
for (j=y1; j<=y2; j++)
for (j=y2; j>=y1; j--)
for (i=x1; i<=x2; i++)
CreateParts(i, j, 0, 0, c, flags);
}

0 comments on commit 57409b0

Please sign in to comment.