diff options
| author | troido <troido@hotmail.com> | 2017-11-06 21:12:10 +0100 |
|---|---|---|
| committer | troido <troido@hotmail.com> | 2017-11-06 21:12:10 +0100 |
| commit | 07250230943a5fdfd7961063478523ee948710f4 (patch) | |
| tree | ebec70993152b583485fad9687ccf3d89349bd40 /asciifarm/client/display/infopad.py | |
| parent | 47b57891ef4940a6fa2047345e092ba2f00cd1ba (diff) | |
changed ui places for inventory and ground. fixed bug where small screens would crash game
Diffstat (limited to 'asciifarm/client/display/infopad.py')
| -rw-r--r-- | asciifarm/client/display/infopad.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asciifarm/client/display/infopad.py b/asciifarm/client/display/infopad.py index 6de3692..b3d900e 100644 --- a/asciifarm/client/display/infopad.py +++ b/asciifarm/client/display/infopad.py @@ -19,7 +19,7 @@ class InfoPad: self.changed = True 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 |
