fix running on windows

This commit is contained in:
Xuwznln
2025-09-28 14:21:48 +08:00
parent a8d4df9901
commit 297001221d
4 changed files with 5 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ class ElevatorController(ABC):
self.debug = debug
self.elevators: List[Any] = []
self.floors: List[Any] = []
self.current_tick = 0
self.current_tick = -2
self.is_running = False
self.current_traffic_max_tick: Optional[int] = None
@@ -173,7 +173,7 @@ class ElevatorController(ABC):
"""内部初始化方法"""
self.elevators = elevators
self.floors = floors
self.current_tick = 0
self.current_tick = -2
# 调用用户的初始化方法
self.on_init(elevators, floors)