From 7859cc839c6ee33e5a4bc6946f3995dea2282413 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Wed, 25 Jul 2012 17:45:30 +0100 Subject: [PATCH] TPT: Prevent STKM floating in gases 31a61d0888 --- src/simulation/Simulation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 9117fd003..d59d94044 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -1850,7 +1850,7 @@ void Simulation::init_can_move() //spark shouldn't move can_move[PT_SPRK][t] = 0; stkm_move = 0; - if (elements[t].Properties&TYPE_LIQUID) + if (elements[t].Properties & (TYPE_LIQUID | TYPE_GAS)) stkm_move = 2; if (!t || t==PT_PRTO || t==PT_SPAWN || t==PT_SPAWN2) stkm_move = 2;