Merge branch 'fix-ladders' into 'master'

Fix ladders

Closes #81

See merge request ynerant/squirrel-battle!81
This commit is contained in:
ynerant 2021-01-25 14:38:58 +01:00
commit 6566f5140a

View File

@ -192,7 +192,7 @@ class Game:
# We move up on the ladder of the beginning,
# down at the end of the stage
move_down = y != self.map.start_y and x != self.map.start_x
move_down = y != self.map.start_y or x != self.map.start_x
old_map = self.map
self.map_index += 1 if move_down else -1
if self.map_index == -1: