# HG changeset patch # User Simon Cross # Date 1378563908 -7200 # Node ID 616f08c0f0961b730c3d74fe52841ee20efa1756 # Parent eb412bb594b4fcf4219de99c9c01e2a15ff7a8b9 None is the same as not changing screen (it's dry but you can commit it). diff -r eb412bb594b4 -r 616f08c0f096 nagslang/screens/area.py --- a/nagslang/screens/area.py Sat Sep 07 16:23:34 2013 +0200 +++ b/nagslang/screens/area.py Sat Sep 07 16:25:08 2013 +0200 @@ -173,7 +173,7 @@ self.protagonist.handle_keypress(cmd_key) elif DoorEvent.matches(ev): self.protagonist.set_position(ev.dest_pos) - if ev.destination != self.name: + if ev.destination is not None and ev.destination != self.name: # Go to anther screen self._disable_render = True self.world.rooms += 1