Prevent livefire from wakeing from sleep while in the process of being extinguished
authorLMH <lmh.0013@gmail.com>
Sun, 8 Sep 2013 06:51:37 +0000 (20:51 -1000)
committerLMH <lmh.0013@gmail.com>
Sun, 8 Sep 2013 06:51:37 +0000 (20:51 -1000)
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) {