diff --git a/SConscript b/SConscript index ad6501686..df8a6779a 100755 --- a/SConscript +++ b/SConscript @@ -535,7 +535,7 @@ sources+=Glob("generated/ToolClasses.cpp") env.Decider('MD5') -# set a defaukt target +# set a default target t=env.Program(target=programName, source=sources) Default(t) diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index eed9adf4d..999a6bbaa 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -1479,11 +1479,14 @@ int Simulation::FloodParts(int x, int y, int fullc, int cm, int flags) } x2++; } - // fill span - for (x=x1; x<=x2; x++) + if (FloodFillPmapCheck(x2+1, y, cm)) { - if (CreateParts(x, y, 0, 0, fullc, flags)) - created_something = 1; + // fill span + for (x=x1; x<=x2; x++) + { + if (CreateParts(x, y, 0, 0, fullc, flags)) + created_something = 1; + } } if (c?y>=CELL+dy:y>=dy)