add code to debug collision rectangles
[supertux.git] / src / scripting / functions.cpp
index aa08d28..d872740 100644 (file)
@@ -36,6 +36,7 @@
 #include "mainloop.hpp"
 #include "worldmap.hpp"
 #include "world.hpp"
+#include "sector.hpp"
 
 #include "squirrel_error.hpp"
 #include "wrapper_util.hpp"
@@ -124,6 +125,11 @@ void add_key(int new_key)
   player_status->set_keys(new_key);
 }
 
+void debug_collrects(bool enable)
+{
+  Sector::show_collrects = enable;
+}
+
 void save_state()
 {
   if(World::current() == NULL)