diff demos/rpg/scripts/rpg.py @ 543:cb7ec12214a9

Items can now be serialized/deserialized to/from disk. I haven't finished actors yet. This allows for persistent states when you enter/leave maps.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 02 Jun 2010 21:43:03 +0000
parents 1afe46247ab1
children d0282579668c
line wrap: on
line diff
--- a/demos/rpg/scripts/rpg.py	Tue Jun 01 21:38:14 2010 +0000
+++ b/demos/rpg/scripts/rpg.py	Wed Jun 02 21:43:03 2010 +0000
@@ -89,6 +89,7 @@
 		self.quit = (command.getCommandType() == fife.CMD_QUIT_GAME)
 		if self.quit:
 			command.consume()
+			self._gamecontroller.endGame()
 
 	def onConsoleCommand(self, command):
 		result = ""
@@ -149,7 +150,6 @@
 	def _pump(self):
 		if self._listener.quit:
 			self.breakRequested = True
-			self._gamecontroller.endGame()
 		else:
 			self._gamecontroller.pump()