fix car forcing

This commit is contained in:
gitGnome
2026-04-01 13:41:40 +02:00
parent e27ecd85f0
commit 589730ae5a
+3 -3
View File
@@ -327,11 +327,11 @@ def handle_program1():
bottom_text_iteration_count += 1 bottom_text_iteration_count += 1
scroll_node_active = False scroll_node_active = False
force = s.get('force_vehicles', 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 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 or random.randint(0, 99) < config.PROGRAM2_TRIGGER_CHANCE:
if force:
with server._lock:
server.state['force_vehicles'] = False
bottom_text_iteration_count = 0 bottom_text_iteration_count = 0
program2_active = True program2_active = True
reset_program2() reset_program2()