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): def clearEmptyNow(self, seatIndex):
self.sendUpdate('emptySlot' + str(seatIndex), [0, self.sendUpdate('emptySlot' + str(seatIndex), [0,
0,
globalClockDelta.getRealNetworkTime(), globalClockDelta.getRealNetworkTime(),
0]) 0])

View file

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

View file

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