|
@@ -95,12 +95,11 @@ class DistributedLevelAI(DistributedObjectAI.DistributedObjectAI,
|
|
|
if __debug__:
|
|
if __debug__:
|
|
|
# level editors should call this func to tweak attributes of level
|
|
# level editors should call this func to tweak attributes of level
|
|
|
# entities
|
|
# entities
|
|
|
- def setAttribChange(self, entId, attribName, valueStr):
|
|
|
|
|
- value = eval(valueStr)
|
|
|
|
|
|
|
+ def setAttribChange(self, entId, attribName, value):
|
|
|
# send a copy to the client-side level obj FIRST
|
|
# send a copy to the client-side level obj FIRST
|
|
|
# (it may be a message that creates an entity)
|
|
# (it may be a message that creates an entity)
|
|
|
self.sendUpdate('setAttribChange',
|
|
self.sendUpdate('setAttribChange',
|
|
|
- [entId, attribName, valueStr])
|
|
|
|
|
|
|
+ [entId, attribName, repr(value)])
|
|
|
self.levelSpec.setAttribChange(entId, attribName, value)
|
|
self.levelSpec.setAttribChange(entId, attribName, value)
|
|
|
|
|
|
|
|
self.modified = 1
|
|
self.modified = 1
|