Mercurial > nagslang
changeset 512:a46767c61ad6
debug print on teleport
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 07 Sep 2013 19:31:30 +0200 |
parents | a98ae2bc4957 |
children | da337a7cfe18 |
files | nagslang/screens/area.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/nagslang/screens/area.py Sat Sep 07 19:28:27 2013 +0200 +++ b/nagslang/screens/area.py Sat Sep 07 19:31:30 2013 +0200 @@ -188,6 +188,8 @@ elif DoorEvent.matches(ev): self.protagonist.set_position(ev.dest_pos) if ev.destination is not None and ev.destination != self.name: + if options.debug: + print 'Teleporting to %s' % ev.destination # Go to anther screen self._disable_render = True ScreenChange.post(ev.destination)