# HG changeset patch # User prock@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1287006643 0 # Node ID f2b3512d0e60cb547324afce2d10e00f0e1a8248 # Parent 07b1cf8e92b5267cba89651ad7d3afe41b4448b2 * hope this fixes the bug in the shooter demo that causes a crash after killing the boss. diff -r 07b1cf8e92b5 -r f2b3512d0e60 demos/shooter/scripts/ships/enemies.py --- a/demos/shooter/scripts/ships/enemies.py Wed Oct 13 20:24:48 2010 +0000 +++ b/demos/shooter/scripts/ships/enemies.py Wed Oct 13 21:50:43 2010 +0000 @@ -26,6 +26,7 @@ from scripts.common.baseobject import * from fife.fife import FloatRect as Rect from scripts.weapons import * +from fife.extensions import fife_timer class EnemyActionListener(ShipActionListener): @@ -44,7 +45,7 @@ super(BossActionListener, self).onInstanceActionFinished(instance, action) if action.getId() == 'explode': - self._ship.endLevel() + self.delayed = fife_timer.delayCall(1000,self._ship.endLevel()) class Saucer1(Ship):