X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/gitweb.js?a=blobdiff_plain;f=rogue_chat_curses.py;h=70060275893245d4e63ba5e2838f53dbd1e53fd6;hb=d13e2f639316c1dba7a62d84f3c850bc937c2b1e;hp=8adbee5b2cc8a858d5be5b1901da7c9d56abadcf;hpb=a2894e6935a831d2d8fdfc1f05ca2edc2e1abc57;p=plomrogue2 diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index 8adbee5..7006027 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -896,7 +896,7 @@ class TUI: term_x = max(0, -self.offset.x) map_y = max(0, self.offset.y) map_x = max(0, self.offset.x) - while (term_y < self.size.y and map_y < self.game.map_geometry.size.y): + while term_y < self.size.y and map_y < len(self.map_lines): to_draw = self.map_lines[map_y][map_x:self.window_width + self.offset.x] safe_addstr(term_y, term_x, to_draw) term_y += 1