From 1d69646aa6f23cfcfa87523023f04156dfcae05b Mon Sep 17 00:00:00 2001 From: Samir Naik Date: Wed, 7 Jan 2004 22:39:47 +0000 Subject: [PATCH] GoonPathData.Paths now a dict --- direct/src/level/PathEntity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/level/PathEntity.py b/direct/src/level/PathEntity.py index 0b45a13569..4577f19432 100755 --- a/direct/src/level/PathEntity.py +++ b/direct/src/level/PathEntity.py @@ -7,14 +7,14 @@ import GoonPathData class PathEntity(BasicEntities.NodePathEntity): def __init__(self, level, entId): BasicEntities.NodePathEntity.__init__(self, level, entId) - self.path = GoonPathData.Paths[self.pathIndex] + self.path = GoonPathData.Paths[self.level.factorySpecNum][self.pathIndex] def destroy(self): BasicEntities.NodePathEntity.destroy(self) def setPathIndex(self, pathIndex): self.pathIndex = pathIndex - self.path = GoonPathData.Paths[self.pathIndex] + self.path = GoonPathData.Paths[self.level.factorySpecNum][self.pathIndex] def makePathTrack(self, node, velocity, name, turnTime=1, lookAroundNode=None): track = Sequence(name = name)