- Change ScriptInterpreter to a gameobject, so we can now have several script
[supertux.git] / src / scripting / functions.cpp
index 99e2c9a..5b24c92 100644 (file)
@@ -11,7 +11,7 @@ namespace Scripting
 
 void set_wakeup_time(float seconds)
 {
-  ScriptInterpreter::current()->suspend(seconds);
+  ScriptInterpreter::current()->set_wakeup_time(seconds);
 }
 
 std::string translate(const std::string& text)