#include "squirrel_util.hpp"
#include "time_scheduler.hpp"
+extern float game_speed;
+
namespace Scripting
{
if (Sector::current() == 0)
{
log_info << "No current sector." << std::endl;
- return false;
+ return false;
}
if (Sector::current()->player == 0)
{
log_info << "No player." << std::endl;
- return false;
+ return false;
}
return true;
}
log_info << "Camera is at " << Sector::current()->camera->get_translation().x << "," << Sector::current()->camera->get_translation().y << std::endl;
}
+void set_gamma(float gamma) {
+ SDL_SetGamma(gamma, gamma, gamma);
+}
+
void quit()
{
main_loop->quit();
return systemRandom.rand();
}
+void set_game_speed(float speed)
+{
+ ::game_speed = speed;
+}
+
}