Redraw map on key press

This commit is contained in:
Joscha 2017-04-06 07:32:40 +00:00
parent 9f02d63a7d
commit 7b5458e1d5
2 changed files with 9 additions and 3 deletions

View file

@ -34,6 +34,11 @@ class Map():
def __exit__(self, type, value, tb):
self._lock.release()
def redraw(self):
self._pad.redrawwin()
self.drawevent.set()
def draw(self):
with self.chunkpool as pool:
for x in range(chunkx(self.width) + 2): # +2, not +1, or there will be empty gaps