Merge d4238b8cdb into 83926fed53
This commit is contained in:
commit
e4b7bffd3a
|
|
@ -1,5 +1,6 @@
|
|||
from panda3d.core import *
|
||||
from toontown.toonbase.ToonBaseGlobal import *
|
||||
from panda3d.otp import NametagGlobals
|
||||
from .DistributedMinigame import *
|
||||
from direct.interval.IntervalGlobal import *
|
||||
from direct.fsm import ClassicFSM, State
|
||||
|
|
|
|||
|
|
@ -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