Fixed event queue not clearing on level changes, and causing weirdness.
This commit is contained in:
parent
963c77f77c
commit
ee5c4da549
1 changed files with 3 additions and 1 deletions
|
@ -360,6 +360,8 @@ Object can be the name of the object, or its coordinates."""
|
|||
preLoaded = False
|
||||
if args[0] in self.persist:
|
||||
preLoaded = True
|
||||
|
||||
self.clearEvents()
|
||||
|
||||
# load the new level
|
||||
if len(args) == 2:
|
||||
|
@ -659,7 +661,7 @@ Object can be the name of the object, or its coordinates."""
|
|||
if a != 'n' and a != 'N':
|
||||
self.loadMap((thing.destination, thing.exitid))
|
||||
else:
|
||||
print('{0} went {1}.'.format(actor.name, str(thing)))
|
||||
print('{0} went {1}.'.format(actor.name, str(thing)), file = self.outstream)
|
||||
self.level.removeThing(actor.name)
|
||||
else:
|
||||
e.action()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue