SuperTux / supertux

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

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

Open Semphriss opened 1 year ago

Semphriss commented 1 year 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 9 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.