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.verplant.org/?a=commitdiff_plain;h=11982dd645a1b98a22950c02a869713f7aa592de;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) {