|
@@ -136,8 +136,8 @@ class DistributedLevel(DistributedObject.DistributedObject,
|
|
|
def initializeLevel(self, levelSpec):
|
|
def initializeLevel(self, levelSpec):
|
|
|
"""subclass should call this as soon as it's located its level spec.
|
|
"""subclass should call this as soon as it's located its level spec.
|
|
|
Must be called after obj has been generated."""
|
|
Must be called after obj has been generated."""
|
|
|
- if __debug__:
|
|
|
|
|
- # if we're in debug, give the server the opportunity to send us
|
|
|
|
|
|
|
+ if __dev__:
|
|
|
|
|
+ # if we're in dev, give the server the opportunity to send us
|
|
|
# a full spec
|
|
# a full spec
|
|
|
self.candidateSpec = levelSpec
|
|
self.candidateSpec = levelSpec
|
|
|
self.sendUpdate('requestCurrentLevelSpec',
|
|
self.sendUpdate('requestCurrentLevelSpec',
|
|
@@ -146,7 +146,7 @@ class DistributedLevel(DistributedObject.DistributedObject,
|
|
|
else:
|
|
else:
|
|
|
self.privGotSpec(levelSpec)
|
|
self.privGotSpec(levelSpec)
|
|
|
|
|
|
|
|
- if __debug__:
|
|
|
|
|
|
|
+ if __dev__:
|
|
|
def setSpecDeny(self, reason):
|
|
def setSpecDeny(self, reason):
|
|
|
DistributedLevel.notify.error(reason)
|
|
DistributedLevel.notify.error(reason)
|
|
|
|
|
|
|
@@ -633,7 +633,7 @@ class DistributedLevel(DistributedObject.DistributedObject,
|
|
|
self.visChangedThisFrame = 0
|
|
self.visChangedThisFrame = 0
|
|
|
return Task.cont
|
|
return Task.cont
|
|
|
|
|
|
|
|
- if __debug__:
|
|
|
|
|
|
|
+ if __dev__:
|
|
|
# level editing stuff
|
|
# level editing stuff
|
|
|
def setAttribChange(self, entId, attribName, valueStr, username):
|
|
def setAttribChange(self, entId, attribName, valueStr, username):
|
|
|
"""every time the spec is edited, we get this message
|
|
"""every time the spec is edited, we get this message
|