From 4108e9d6de64b4b8e9980a02158df34651986475 Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 1 Jan 2018 21:46:05 +0100 Subject: server now sends list of sprites per cell to client. ground uses eventtarget too in interaction with room --- asciifarm/client/display/display.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'asciifarm/client/display/display.py') diff --git a/asciifarm/client/display/display.py b/asciifarm/client/display/display.py index 1a2dca0..9a8595e 100644 --- a/asciifarm/client/display/display.py +++ b/asciifarm/client/display/display.py @@ -73,7 +73,8 @@ class Display: def drawFieldCells(self, cells): for cell in cells: - (x, y), spriteName = cell + (x, y), spriteNames = cell + spriteName = spriteNames[0] if len(spriteNames) else " " sprite = self.getChar(spriteName) self.fieldPad.changeCell(x, y, *sprite) #self.change() -- cgit