From c32f9ffa514ed0769e8a9d9aa59ffe4c06d606e6 Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Sat, 5 Mar 2016 16:07:47 +0200 Subject: [PATCH] Don't re-initialize when re-entering. --- koperkapel/scenes/level.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.34.1