Renamed namespaces to all lowercase
[supertux.git] / src / object / thunderstorm.cpp
index 8cb171d..6a8aeff 100644 (file)
@@ -19,7 +19,7 @@
 #include "audio/sound_manager.hpp"
 #include "object/electrifier.hpp"
 #include "scripting/squirrel_util.hpp"
-#include "supertux/main.hpp"
+#include "supertux/globals.hpp"
 #include "supertux/object_factory.hpp"
 #include "supertux/sector.hpp"
 #include "util/reader.hpp"
@@ -32,7 +32,10 @@ const float FLASH_DISPLAY_TIME = 0.1f;
 Thunderstorm::Thunderstorm(const Reader& reader) :
   running(true),
   interval(10.0f), 
-  layer(LAYER_BACKGROUNDTILES-1)
+  layer(LAYER_BACKGROUNDTILES-1),
+  time_to_thunder(),
+  time_to_lightning(),
+  flash_display_timer()
 {
   reader.get("name", name);
   reader.get("running", running);
@@ -82,7 +85,7 @@ void
 Thunderstorm::expose(HSQUIRRELVM vm, SQInteger table_idx)
 {
   if (name == "") return;
-  Scripting::Thunderstorm* interface = new Scripting::Thunderstorm(this);
+  scripting::Thunderstorm* interface = new scripting::Thunderstorm(this);
   expose_object(vm, table_idx, interface, name, true);
 }
 
@@ -90,7 +93,7 @@ void
 Thunderstorm::unexpose(HSQUIRRELVM vm, SQInteger table_idx)
 {
   if (name == "") return;
-  Scripting::unexpose_object(vm, table_idx, name);
+  scripting::unexpose_object(vm, table_idx, name);
 }
 
 void