From 722ff07952e8e70efe71e2a8ab76ff97e8babd44 Mon Sep 17 00:00:00 2001 From: Charles Peyrat Date: Fri, 16 Oct 2020 16:00:57 +0200 Subject: [PATCH] Fixed method display from mapdisplay.MapDisplay --- dungeonbattle/mapdisplay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dungeonbattle/mapdisplay.py b/dungeonbattle/mapdisplay.py index 7ae7cc7..230ab1c 100644 --- a/dungeonbattle/mapdisplay.py +++ b/dungeonbattle/mapdisplay.py @@ -22,7 +22,7 @@ class MapDisplay: deltay, deltax = curses.LINES - deltay, curses.COLS - deltay smaxrow = self.map.height - (y + deltay) + curses.LINES smaxrow = min(smaxrow, curses.LINES-1) - smaxcol = self.width - (x + deltax) + curses.COLS + smaxcol = self.map.width - (x + deltax) + curses.COLS smaxcol = min(smaxcol, curses.COLS-1) pminrow = max(0, min(self.map.height, pminrow)) pmincol = max(0, min(self.map.width, pmincol))