home · contact · privacy
Empty client log before each new turn.
[plomrogue2-experiments] / new / example_client.py
index 88939ba4d9fe026584fbaff0206dcec14e5f4a9d..bd8bcfd1a8a9667f762e74b22414cb13e860663a 100755 (executable)
@@ -79,6 +79,7 @@ cmd_TURN_FINISHED.argtypes = 'int:nonneg'
 
 def cmd_TURN(game, n):
     """Set game.turn to n, empty game.things."""
+    game.log_text = ''
     game.turn = n
     game.things = []
     game.pickable_items[:] = []
@@ -554,7 +555,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