SuperTux / supertux

SuperTux source code
https://supertux.org
GNU General Public License v3.0
2.53k stars 490 forks source link

`wait()` command not working in console #2326

Open Semphriss opened 2 years ago

Semphriss commented 2 years ago

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:

More serious:

tylerandari13 commented 11 months 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.