cogdominium: fix sellbot field offices
This commit is contained in:
parent
d4d26d5ad9
commit
5447ed529c
5 changed files with 3 additions and 8 deletions
|
@ -18,7 +18,7 @@ class SpeedMonitor:
|
|||
taskMgr.remove(self._trackTask)
|
||||
|
||||
def _allocToken(self):
|
||||
return 'speedMonitorToken-%s-%s-%s' % (self._name, id(self), next(SpeedMonitor.SerialGen))
|
||||
return 'speedMonitorToken-%s-%s-%s' % (self._name, id(self), SpeedMonitor.SerialGen.next())
|
||||
|
||||
def addNodepath(self, nodepath):
|
||||
token = self._allocToken()
|
||||
|
|
|
@ -45,8 +45,6 @@ class CogdoElevatorMovie(CogdoGameMovie):
|
|||
for part in suit.getHeadParts():
|
||||
part.hide()
|
||||
|
||||
suit.loop('neutral')
|
||||
|
||||
def load(self):
|
||||
self.notify.debug('load()')
|
||||
CogdoGameMovie.load(self)
|
||||
|
|
|
@ -50,8 +50,6 @@ class CogdoExecutiveSuiteIntro(CogdoGameMovie):
|
|||
for part in suit.getHeadParts():
|
||||
part.hide()
|
||||
|
||||
suit.loop('neutral')
|
||||
|
||||
def load(self):
|
||||
self.notify.debug('load()')
|
||||
CogdoGameMovie.load(self)
|
||||
|
|
|
@ -51,8 +51,6 @@ class CogdoMazeGameIntro(CogdoGameMovie):
|
|||
for part in suit.getHeadParts():
|
||||
part.hide()
|
||||
|
||||
suit.loop('neutral')
|
||||
|
||||
def load(self):
|
||||
CogdoGameMovie.load(self)
|
||||
self.toonDNA = ToonDNA.ToonDNA()
|
||||
|
|
|
@ -8,6 +8,7 @@ from toontown.suit import Suit
|
|||
from toontown.suit import SuitDNA
|
||||
from toontown.toonbase import ToontownGlobals
|
||||
from . import MazeGameGlobals
|
||||
import functools
|
||||
|
||||
class MazeSuit(DirectObject):
|
||||
COLL_SPHERE_NAME = 'MazeSuitSphere'
|
||||
|
@ -233,7 +234,7 @@ class MazeSuit(DirectObject):
|
|||
updateTics = suitList[i].getThinkTimestampTics(curTic)
|
||||
suitUpdates.extend(list(zip(updateTics, [i] * len(updateTics))))
|
||||
|
||||
suitUpdates.sort(lambda a, b: a[0] - b[0])
|
||||
suitUpdates.sort(key=functools.cmp_to_key(lambda a, b: a[0] - b[0]))
|
||||
if len(suitUpdates) > 0:
|
||||
curTic = 0
|
||||
for i in range(len(suitUpdates)):
|
||||
|
|
Loading…
Reference in a new issue