projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed some unused code (handled in video/gl_renderer now)
[supertux.git]
/
src
/
scripting
/
functions.cpp
diff --git
a/src/scripting/functions.cpp
b/src/scripting/functions.cpp
index
c2f8c98
..
e53a837
100644
(file)
--- a/
src/scripting/functions.cpp
+++ b/
src/scripting/functions.cpp
@@
-51,6
+51,8
@@
#include "squirrel_util.hpp"
#include "time_scheduler.hpp"
#include "squirrel_util.hpp"
#include "time_scheduler.hpp"
+extern float game_speed;
+
namespace Scripting
{
namespace Scripting
{
@@
-96,6
+98,11
@@
void shrink_screen(float dest_x, float dest_y, float seconds)
main_loop->set_screen_fade(new ShrinkFade(Vector(dest_x, dest_y), seconds));
}
main_loop->set_screen_fade(new ShrinkFade(Vector(dest_x, dest_y), seconds));
}
+void abort_screenfade()
+{
+ main_loop->set_screen_fade(NULL);
+}
+
std::string translate(const std::string& text)
{
return dictionary_manager.get_dictionary().translate(text);
std::string translate(const std::string& text)
{
return dictionary_manager.get_dictionary().translate(text);
@@
-280,4
+287,9
@@
int rand()
return systemRandom.rand();
}
return systemRandom.rand();
}
+void set_game_speed(float speed)
+{
+ ::game_speed = speed;
+}
+
}
}