From: LMH Date: Sun, 8 Sep 2013 06:51:37 +0000 (-1000) Subject: Prevent livefire from wakeing from sleep while in the process of being extinguished X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=63255b15f49ef13ffecf5709f02032e0e8da403b;p=supertux.git Prevent livefire from wakeing from sleep while in the process of being extinguished --- diff --git a/src/badguy/livefire.cpp b/src/badguy/livefire.cpp index b627c4934..1fa5cba08 100644 --- a/src/badguy/livefire.cpp +++ b/src/badguy/livefire.cpp @@ -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) {