Mercurial > boomslang
changeset 513:0e8487038834
fixed crash caused by the manual item's special snowflakeness
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Sun, 05 Sep 2010 22:59:33 +0200 |
parents | b10dae40dc32 |
children | ec855943f898 |
files | gamelib/cursor.py gamelib/scenes/machine.py |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gamelib/cursor.py Sat Sep 04 10:38:14 2010 +0200 +++ b/gamelib/cursor.py Sun Sep 05 22:59:33 2010 +0200 @@ -90,7 +90,7 @@ @classmethod def set_cursor(cls, item): - if item is None: + if item is None or item.CURSOR is None: cls.cursor = HAND else: cls.cursor = item.CURSOR
--- a/gamelib/scenes/machine.py Sat Sep 04 10:38:14 2010 +0200 +++ b/gamelib/scenes/machine.py Sun Sep 05 22:59:33 2010 +0200 @@ -286,6 +286,9 @@ INVENTORY_IMAGE = "manual.png" CURSOR = None + def is_interactive(self): + return True + def interact_without(self): return Result(detail_view='manual_detail')