From: Christian Heller Date: Thu, 25 Apr 2019 23:29:36 +0000 (+0200) Subject: Fix map. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/do_todos?a=commitdiff_plain;h=c42ba1459a2d4c50abd97105231c0ae0cb189f98;p=plomrogue2-experiments Fix map. --- 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()