fix car forcing
This commit is contained in:
+2
-2
@@ -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 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:
|
if force:
|
||||||
with server._lock:
|
with server._lock:
|
||||||
server.state['force_vehicles'] = False
|
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:
|
|
||||||
bottom_text_iteration_count = 0
|
bottom_text_iteration_count = 0
|
||||||
program2_active = True
|
program2_active = True
|
||||||
reset_program2()
|
reset_program2()
|
||||||
|
|||||||
Reference in New Issue
Block a user