Merge branch 'map_display' of gitlab.crans.org:ynerant/dungeon-battle into map_display

This commit is contained in:
Nicolas Margulies 2020-10-16 16:02:47 +02:00
commit cfbe612192
1 changed files with 1 additions and 1 deletions

View File

@ -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))