fix car forcing
This commit is contained in:
+3
-3
@@ -327,11 +327,11 @@ def handle_program1():
|
||||
bottom_text_iteration_count += 1
|
||||
scroll_node_active = False
|
||||
force = s.get('force_vehicles', False)
|
||||
if force:
|
||||
with server._lock:
|
||||
server.state['force_vehicles'] = False
|
||||
if s['program_vehicles_enabled'] and (force or bottom_text_iteration_count >= config.PROGRAM2_TEXT_ITERATIONS):
|
||||
if force or random.randint(0, 99) < config.PROGRAM2_TRIGGER_CHANCE:
|
||||
if force:
|
||||
with server._lock:
|
||||
server.state['force_vehicles'] = False
|
||||
bottom_text_iteration_count = 0
|
||||
program2_active = True
|
||||
reset_program2()
|
||||
|
||||
Reference in New Issue
Block a user