X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=new%2Fplomrogue%2Fgame.py;h=18f45d88bad84df15138e20f26382b04a089dd67;hb=c42ba1459a2d4c50abd97105231c0ae0cb189f98;hp=b1225eab8a625b7e5ee8efd1ebe3e1e8b7841d66;hpb=3b7db36664e8989b106d8975d7a115e8a872b473;p=plomrogue2-experiments 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()