diff --git a/src/simulation/simtools/Mix.cpp b/src/simulation/simtools/Mix.cpp index e4ebbdd50..30eccf227 100755 --- a/src/simulation/simtools/Mix.cpp +++ b/src/simulation/simtools/Mix.cpp @@ -19,7 +19,7 @@ int Tool_Mix::Perform(Simulation * sim, Particle * cpart, int x, int y, float st int distance = (int)(std::pow(strength, .5f) * 10); - if(!(sim->elements[thisPart&0xFF].Properties & TYPE_PART)) + if(!(sim->elements[thisPart&0xFF].Properties & (TYPE_PART | TYPE_LIQUID | TYPE_GAS))) return 0; int newX = x + (rand() % distance) - (distance/2); @@ -32,7 +32,7 @@ int Tool_Mix::Perform(Simulation * sim, Particle * cpart, int x, int y, float st if(!thatPart) return 0; - if(!(sim->elements[thatPart&0xFF].Properties & TYPE_PART)) + if(!(sim->elements[thatPart&0xFF].Properties & (TYPE_PART | TYPE_LIQUID | TYPE_GAS))) return 0; sim->pmap[y][x] = thatPart;