changeset 304:17edb4b98e3e

- fixed silly bug in object serializer; missing int cast broke setBlocking / setStatic functionality NOTE: - bool("1") and bool("0") are both resulting in True ....
author chewie@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 20 Jul 2009 16:56:51 +0000
parents a33576d94f32
children e25cfb3fe58e
files engine/extensions/serializers/xmlobject.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/engine/extensions/serializers/xmlobject.py	Sat Jul 11 07:17:24 2009 +0000
+++ b/engine/extensions/serializers/xmlobject.py	Mon Jul 20 16:56:51 2009 +0000
@@ -79,8 +79,8 @@
 
 		obj.setResourceLocation(self.source)
 		fife.ObjectVisual.create(obj)
-		obj.setBlocking(bool( object.get('blocking', False) ))
-		obj.setStatic(bool( object.get('static', False) ))
+		obj.setBlocking(bool( int(object.get('blocking', False)) ))
+		obj.setStatic(bool( int(object.get('static', False)) ))
 
 		pather = object.get('pather', 'RoutePather')
 		obj.setPather( self.model.getPather(pather) )