home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3b7db36
)
Fix map.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 25 Apr 2019 23:29:36 +0000
(
01:29
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 25 Apr 2019 23:29:36 +0000
(
01:29
+0200)
new/plomrogue/game.py
patch
|
blob
|
history
diff --git
a/new/plomrogue/game.py
b/new/plomrogue/game.py
index b1225eab8a625b7e5ee8efd1ebe3e1e8b7841d66..18f45d88bad84df15138e20f26382b04a089dd67 100755
(executable)
--- 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))
"""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()
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()
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()