minigames: fix tag game collisions not working after playing toon escape, resolves #114
This commit is contained in:
parent
5e90f7ed43
commit
d4238b8cdb
|
|
@ -138,8 +138,7 @@ class DistributedTwoDGame(DistributedMinigame):
|
|||
toon.hideName()
|
||||
toon.startSmooth()
|
||||
toon.startLookAround()
|
||||
distCNP = toon.find('**/distAvatarCollNode*')
|
||||
distCNP.node().setIntoCollideMask(BitMask32.allOff())
|
||||
toon.stashBodyCollisions()
|
||||
toonSD = TwoDGameToonSD.TwoDGameToonSD(avId, self)
|
||||
self.toonSDs[avId] = toonSD
|
||||
toonSD.enter()
|
||||
|
|
@ -255,6 +254,11 @@ class DistributedTwoDGame(DistributedMinigame):
|
|||
del self.twoDWalk
|
||||
self.twoDDrive = None
|
||||
del self.twoDDrive
|
||||
|
||||
for avId in self.remoteAvIdList:
|
||||
toon = self.getAvatar(avId)
|
||||
if toon:
|
||||
toon.unstashBodyCollisions()
|
||||
return
|
||||
|
||||
def exitCleanup(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue