|
|
@ -409,14 +409,14 @@ int main (int argc, char** argv)
|
|
|
|
DFHack::t_designation des = mcache.designationAt(current);
|
|
|
|
DFHack::t_designation des = mcache.designationAt(current);
|
|
|
|
uint16_t tt = mcache.tiletypeAt(current);
|
|
|
|
uint16_t tt = mcache.tiletypeAt(current);
|
|
|
|
DFHack::naked_designation & flow = des.bits;
|
|
|
|
DFHack::naked_designation & flow = des.bits;
|
|
|
|
if(mode != "flowbits")
|
|
|
|
// don't put liquids into places where they don't belong...
|
|
|
|
{
|
|
|
|
|
|
|
|
if(!DFHack::FlowPassable(tt))
|
|
|
|
if(!DFHack::FlowPassable(tt))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
iter++;
|
|
|
|
iter++;
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// if we are setting the levels to 0 or changing magma into water
|
|
|
|
if(mode != "flowbits")
|
|
|
|
|
|
|
|
{
|
|
|
|
if(setmode == "s.")
|
|
|
|
if(setmode == "s.")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
flow.flow_size = amount;
|
|
|
|
flow.flow_size = amount;
|
|
|
|