From ee5c4da549cec00141598ac02f9f4f9e8aa73c13 Mon Sep 17 00:00:00 2001 From: Patrick Marsee Date: Tue, 15 Oct 2019 19:57:17 -0400 Subject: [PATCH] Fixed event queue not clearing on level changes, and causing weirdness. --- gamebase.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gamebase.py b/gamebase.py index 98dfcda..8e17475 100644 --- a/gamebase.py +++ b/gamebase.py @@ -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()