From dcef255f478e60297d4245013e460da05e5eec84 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Mon, 6 Jan 2014 23:45:14 -0500 Subject: [PATCH] fix flood fill. This was a mistype, and the original check I had doesn't work all the time anyway (so just remove it) --- src/simulation/Simulation.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 7cdeb9d23..d1478c216 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -1479,14 +1479,11 @@ int Simulation::FloodParts(int x, int y, int fullc, int cm, int flags) } x2++; } - if (FloodFillPmapCheck(x2+1, y, cm)) + // fill span + for (x=x1; x<=x2; x++) { - // fill span - for (x=x1; x<=x2; x++) - { - if (CreateParts(x, y, 0, 0, fullc, flags)) - created_something = 1; - } + if (CreateParts(x, y, 0, 0, fullc, flags)) + created_something = 1; } if (c?y>=CELL+dy:y>=dy)