Merge branch 'fix-ladders' into 'master'
Fix ladders Closes #81 See merge request ynerant/squirrel-battle!81
This commit is contained in:
commit
6566f5140a
|
@ -192,7 +192,7 @@ class Game:
|
||||||
|
|
||||||
# We move up on the ladder of the beginning,
|
# We move up on the ladder of the beginning,
|
||||||
# down at the end of the stage
|
# 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
|
old_map = self.map
|
||||||
self.map_index += 1 if move_down else -1
|
self.map_index += 1 if move_down else -1
|
||||||
if self.map_index == -1:
|
if self.map_index == -1:
|
||||||
|
|
Loading…
Reference in New Issue