minigames: fix tag game collisions not working after playing toon escape, resolves #114

This commit is contained in:
demiurgeQuantified 2023-11-10 06:52:00 +00:00
parent 5e90f7ed43
commit d4238b8cdb
1 changed files with 6 additions and 2 deletions

View File

@ -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):