summaryrefslogtreecommitdiff
path: root/src/mapdata.py
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-07-25 14:11:19 +0200
committerTreeki <treeki@gmail.com>2012-07-25 14:11:19 +0200
commite0aebec63011cbcb676caa92948e25c62fd6c17b (patch)
treed23461dd544b6fb6d914406436aadbef5ab08468 /src/mapdata.py
parentfaaa82bd81f24fc897a5d0ae912381413625ddeb (diff)
downloadkoopatlas-e0aebec63011cbcb676caa92948e25c62fd6c17b.tar.gz
koopatlas-e0aebec63011cbcb676caa92948e25c62fd6c17b.zip
exporting of unlockable paths donefreeform-unlocks
Diffstat (limited to 'src/mapdata.py')
-rw-r--r--src/mapdata.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mapdata.py b/src/mapdata.py
index 0332280..d175046 100644
--- a/src/mapdata.py
+++ b/src/mapdata.py
@@ -464,6 +464,10 @@ class KPPath(object):
# self.linkedLayer = mapObj.derefLayer(src['linkedLayer'])
def __init__(self, startNode=None, endNode=None, cloneFrom=None):
+ # this is placed before the null ctor in case we load an old
+ # kpmap that didn't have unlockSpec
+ self.unlockSpec = None # always unlocked, by default
+
if startNode is None and endNode is None:
# null ctor, ignore this
# we're probably loaded from a file, so trust
@@ -476,8 +480,6 @@ class KPPath(object):
startNode.exits.append(self)
endNode.exits.append(self)
- self.unlockSpec = None # always unlocked, by default
-
if cloneFrom is None:
self.animation = 0
else: