Mercurial > fife-parpg
changeset 647:f2b3512d0e60
* hope this fixes the bug in the shooter demo that causes a crash after killing the boss.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 13 Oct 2010 21:50:43 +0000 |
parents | 07b1cf8e92b5 |
children | 6837a83471e0 |
files | demos/shooter/scripts/ships/enemies.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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):