Open Semphriss opened 2 years ago
I think everything is working as intended. If you type wait(5); print("waited 5 seconds")
it waits 5 seconds before printing the message. Regarding the more serious way to reproduce, the error i get is Squirrel error: Problem while executing command (cannot suspend an already suspended vm)
which happens if you manage to run a wait command when a script is already waiting.
SuperTux version: Latest @ master System information: Ubuntu 20.04
Expected behavior
Calling
wait
in the console freezes the console for the requested amount of time.Actual behavior
Calling
wait
in the console prints the number it was given as argument to the output, immediately returns to the command line, and comes back after the specified time to finish its tasks - all while the console is still usable anyways.Steps to reproduce actual behavior
Basic:
wait(1);
in the console + enter.More serious:
wait(1);
in the console + enter + up arrow + enter again, before the first wait() finished. Notice the errors printed to the console.