Changeset 471:616f08c0f096 for nagslang


Ignore:
Timestamp:
Sep 7, 2013, 2:25:08 PM (7 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
rebase_source:
7011c1851a89906a42706ce30505c21224588841
Message:

None is the same as not changing screen (it's dry but you can commit it).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/area.py

    r469 r471  
    174174        elif DoorEvent.matches(ev):
    175175            self.protagonist.set_position(ev.dest_pos)
    176             if ev.destination != self.name:
     176            if ev.destination is not None and ev.destination != self.name:
    177177                # Go to anther screen
    178178                self._disable_render = True
Note: See TracChangeset for help on using the changeset viewer.