# HG changeset patch # User chewie@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1248109011 0 # Node ID 17edb4b98e3e34d1a0f38d64e7ae7af85682a1e6 # Parent a33576d94f3201295d2304143b51bc090e3fc5c7 - fixed silly bug in object serializer; missing int cast broke setBlocking / setStatic functionality NOTE: - bool("1") and bool("0") are both resulting in True .... diff -r a33576d94f32 -r 17edb4b98e3e engine/extensions/serializers/xmlobject.py --- 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) )