projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lots of cool scripting stuff
[supertux.git]
/
src
/
scripting
/
functions.cpp
diff --git
a/src/scripting/functions.cpp
b/src/scripting/functions.cpp
index
10e5f2b
..
f62ef92
100644
(file)
--- a/
src/scripting/functions.cpp
+++ b/
src/scripting/functions.cpp
@@
-12,7
+12,7
@@
namespace Scripting
{
-void
set_wakeup_time
(float seconds)
+void
wait
(float seconds)
{
ScriptInterpreter::current()->set_wakeup_time(seconds);
}
@@
-47,5
+47,10
@@
void import(HSQUIRRELVM v, const std::string& filename)
}
}
+void add_key(int new_key)
+{
+ player_status->set_keys(new_key);
+}
+
}