From c42ba1459a2d4c50abd97105231c0ae0cb189f98 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 26 Apr 2019 01:29:36 +0200 Subject: [PATCH] Fix map. --- new/plomrogue/game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new/plomrogue/game.py b/new/plomrogue/game.py index b1225ea..18f45d8 100755 --- a/new/plomrogue/game.py +++ b/new/plomrogue/game.py @@ -184,8 +184,8 @@ class Game: """Send out game state data relevant to clients.""" self.io.send('TURN ' + str(self.world.turn)) - self.io.send('MAP ' + stringify_yx(visible_map.size)) visible_map = self.world.player.get_visible_map() + self.io.send('MAP ' + stringify_yx(visible_map.size)) for y, line in visible_map.lines(): self.io.send('VISIBLE_MAP_LINE %5s %s' % (y, quote(line))) visible_things, offset = self.world.player.get_visible_things() -- 2.30.2