From ea4e8f0248101846351387f8f3ed84f5c83e6704 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Fri, 6 Jan 2023 15:10:12 +0100 Subject: [PATCH] Move the delay into setup_and_run_task() --- lambdaV.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lambdaV.py b/lambdaV.py index c66b11b..54c2a64 100644 --- a/lambdaV.py +++ b/lambdaV.py @@ -518,6 +518,7 @@ def setup_and_run_task(start_field, start_position, start_heading, text, allowed print("\nAvailable conditions: "+", ".join(allowed_conditions)) result = evaluate_parser_result(parse_code(input("\nCode: "), allowed_commands, allowed_conditions)) print(result) + time.sleep(3) if result=="Success!": return True return False @@ -573,7 +574,7 @@ if __name__ == "__main__": print("Unknown start heading!") sys.exit(1) while not setup_and_run_task(level_data["field"].copy(), level_data["start position"].copy(), cursor_start, level_data["text"], level_data["allowed commands"].copy(), level_data["allowed conditions"].copy()): - time.sleep(3) + pass if single_file_mode: break