From: Simon Cross Date: Sat, 5 Mar 2016 14:07:47 +0000 (+0200) Subject: Don't re-initialize when re-entering. X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=c32f9ffa514ed0769e8a9d9aa59ffe4c06d606e6;p=koperkapel.git Don't re-initialize when re-entering. --- diff --git a/koperkapel/scenes/level.py b/koperkapel/scenes/level.py index fcf9995..0c57ae0 100644 --- a/koperkapel/scenes/level.py +++ b/koperkapel/scenes/level.py @@ -81,6 +81,8 @@ class BaseLevelScene(Scene): class GameLevelScene(BaseLevelScene): def enter(self, world): + if self._level is not None: + return super().enter(world) self._roaches = self.actors.add_layer("roaches", level=10) self._vehicle = Vehicle.current(world)