mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
Elevator fixes
This commit is contained in:
parent
84dc9372cf
commit
584eafbd7d
3 changed files with 3 additions and 3 deletions
|
@ -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])
|
||||||
|
|
||||||
|
|
|
@ -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(),
|
||||||
|
|
|
@ -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,))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue