home · contact · privacy
Fix map indentation handling bug in client cursor movement.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 1 May 2019 00:58:27 +0000 (02:58 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 1 May 2019 00:58:27 +0000 (02:58 +0200)
new/example_client.py

index 88939ba4d9fe026584fbaff0206dcec14e5f4a9d..27960057766110908af16a304b7b91d2a63dd256 100755 (executable)
@@ -554,7 +554,8 @@ class TUI:
         def move_examiner(direction):
             start_pos = self.examiner_position
             new_examine_pos = self.game.map_geometry.move(start_pos, direction,
-                                                          self.game.map_.size)
+                                                          self.game.map_.size,
+                                                          self.game.map_.start_indented)
             if new_examine_pos[0] == (0,0):
                 self.examiner_position = new_examine_pos
             self.to_update['map'] = True