From 07250230943a5fdfd7961063478523ee948710f4 Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 6 Nov 2017 21:12:10 +0100 Subject: changed ui places for inventory and ground. fixed bug where small screens would crash game --- asciifarm/client/display/fieldpad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'asciifarm/client/display/fieldpad.py') diff --git a/asciifarm/client/display/fieldpad.py b/asciifarm/client/display/fieldpad.py index 8d177d5..3196eff 100644 --- a/asciifarm/client/display/fieldpad.py +++ b/asciifarm/client/display/fieldpad.py @@ -36,7 +36,7 @@ class FieldPad: return self.size[1] def update(self, screen, x, y, xmax, ymax): - if not self.changed and (x, y, xmax, ymax) == self.lastView: + if not self.changed and (x, y, xmax, ymax) == self.lastView or xmax <= x or ymax <= y: return self.lastView = (x, y, xmax, ymax) self.changed = False -- cgit