diff --git a/rpg/views/game_view.py b/rpg/views/game_view.py index 4b1c4ac3..b5647d25 100644 --- a/rpg/views/game_view.py +++ b/rpg/views/game_view.py @@ -325,9 +325,12 @@ def on_update(self, delta_time): # Swap to the new map self.switch_map(map_name, start_x, start_y) - - # Scroll the window to the player - self.scroll_to_player() + else: + # We didn't hit a door, scroll normally + self.scroll_to_player() + else: + # No doors, scroll normally + self.scroll_to_player() def on_key_press(self, key, modifiers): """Called whenever a key is pressed."""