mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 04:01:56 +02:00
fix flood fill. This was a mistype, and the original check I had doesn't work all the time anyway (so just remove it)
This commit is contained in:
@@ -1479,14 +1479,11 @@ int Simulation::FloodParts(int x, int y, int fullc, int cm, int flags)
|
|||||||
}
|
}
|
||||||
x2++;
|
x2++;
|
||||||
}
|
}
|
||||||
if (FloodFillPmapCheck(x2+1, y, cm))
|
// fill span
|
||||||
|
for (x=x1; x<=x2; x++)
|
||||||
{
|
{
|
||||||
// fill span
|
if (CreateParts(x, y, 0, 0, fullc, flags))
|
||||||
for (x=x1; x<=x2; x++)
|
created_something = 1;
|
||||||
{
|
|
||||||
if (CreateParts(x, y, 0, 0, fullc, flags))
|
|
||||||
created_something = 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c?y>=CELL+dy:y>=dy)
|
if (c?y>=CELL+dy:y>=dy)
|
||||||
|
Reference in New Issue
Block a user