Elevator fixes

This commit is contained in:
John 2015-09-03 18:56:03 +03:00
parent 84dc9372cf
commit 584eafbd7d
3 changed files with 3 additions and 3 deletions

View file

@ -115,7 +115,6 @@ class DistributedElevatorAI(DistributedObjectAI.DistributedObjectAI):
def clearEmptyNow(self, seatIndex):
self.sendUpdate('emptySlot' + str(seatIndex), [0,
0,
globalClockDelta.getRealNetworkTime(),
0])

View file

@ -50,7 +50,7 @@ class DistributedElevatorExtAI(DistributedElevatorAI.DistributedElevatorAI):
pass
else:
self.clearFullNow(seatIndex)
self.s
self.resetCountdown()
timeToSend = self.countdownTime
self.sendUpdate('emptySlot' + str(seatIndex), [avId,
globalClockDelta.getRealNetworkTime(),

View file

@ -61,7 +61,8 @@ class DistributedElevatorIntAI(DistributedElevatorAI.DistributedElevatorAI):
if seatIndex == None:
pass
self.clearFullNow(seatIndex)
self.sendUpdate('emptySlot' + str(seatIndex), [avId, 0,
self.resetCountdown()
self.sendUpdate('emptySlot' + str(seatIndex), [avId,
globalClockDelta.getRealNetworkTime(), self.countdownTime])
taskMgr.doMethodLater(TOON_EXIT_ELEVATOR_TIME, self.clearEmptyNow, self.uniqueName('clearEmpty-%s' % seatIndex), extraArgs = (seatIndex,))