From 2ca0671ed5715647a9a83a4497e85be78a269e29 Mon Sep 17 00:00:00 2001 From: JesperKauppinen Date: Sun, 27 Mar 2022 01:29:01 +0200 Subject: [PATCH] click multiple icons crash fixed --- mapview.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mapview.py b/mapview.py index be09199..f418af6 100644 --- a/mapview.py +++ b/mapview.py @@ -314,9 +314,7 @@ def on_mouse_press(self, x, y, button, modifiers): game.setup() self.window.show_view(game) - hit_step = arcade.check_for_collision_with_list( - self.cursor_sprite, MapView.step_list) - if hit_step and (hit_step[0].level is not None): + elif hit_step and (hit_step[0].level is not None): if hit_step[0].unlocked: story_level = hit_step[0].level # Play monument click sfx