Prevent livefire from wakeing from sleep while in the process of being extinguished
[supertux.git] / src / badguy / livefire.cpp
index b627c49..1fa5cba 100644 (file)
@@ -68,7 +68,7 @@ LiveFire::active_update(float elapsed_time) {
     return;
   }
 
-  if(state == STATE_SLEEPING) {
+  if(state == STATE_SLEEPING && get_group() == COLGROUP_MOVING) {
 
     Player* player = this->get_nearest_player();
     if (player) {