TPT: Prevent STKM floating in gases 31a61d0888

This commit is contained in:
Simon Robertshaw 2012-07-25 17:45:30 +01:00
parent e36bc8e4ae
commit 7859cc839c

View File

@ -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;