Fixed method display from mapdisplay.MapDisplay
This commit is contained in:
parent
1b635502c4
commit
722ff07952
|
@ -22,7 +22,7 @@ class MapDisplay:
|
||||||
deltay, deltax = curses.LINES - deltay, curses.COLS - deltay
|
deltay, deltax = curses.LINES - deltay, curses.COLS - deltay
|
||||||
smaxrow = self.map.height - (y + deltay) + curses.LINES
|
smaxrow = self.map.height - (y + deltay) + curses.LINES
|
||||||
smaxrow = min(smaxrow, curses.LINES-1)
|
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)
|
smaxcol = min(smaxcol, curses.COLS-1)
|
||||||
pminrow = max(0, min(self.map.height, pminrow))
|
pminrow = max(0, min(self.map.height, pminrow))
|
||||||
pmincol = max(0, min(self.map.width, pmincol))
|
pmincol = max(0, min(self.map.width, pmincol))
|
||||||
|
|
Loading…
Reference in New Issue