From 584eafbd7d3a2fe79bfefd77786ad3f16a1585d9 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 3 Sep 2015 18:56:03 +0300 Subject: [PATCH] Elevator fixes --- toontown/building/DistributedElevatorAI.py | 1 - toontown/building/DistributedElevatorExtAI.py | 2 +- toontown/building/DistributedElevatorIntAI.py | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/toontown/building/DistributedElevatorAI.py b/toontown/building/DistributedElevatorAI.py index 0e20833c..4ba67609 100755 --- a/toontown/building/DistributedElevatorAI.py +++ b/toontown/building/DistributedElevatorAI.py @@ -115,7 +115,6 @@ class DistributedElevatorAI(DistributedObjectAI.DistributedObjectAI): def clearEmptyNow(self, seatIndex): self.sendUpdate('emptySlot' + str(seatIndex), [0, - 0, globalClockDelta.getRealNetworkTime(), 0]) diff --git a/toontown/building/DistributedElevatorExtAI.py b/toontown/building/DistributedElevatorExtAI.py index 426a46c8..1bb9cd63 100755 --- a/toontown/building/DistributedElevatorExtAI.py +++ b/toontown/building/DistributedElevatorExtAI.py @@ -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(), diff --git a/toontown/building/DistributedElevatorIntAI.py b/toontown/building/DistributedElevatorIntAI.py index 55631ee2..d8e6dfe8 100755 --- a/toontown/building/DistributedElevatorIntAI.py +++ b/toontown/building/DistributedElevatorIntAI.py @@ -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,))