Tux grows faster, stops growing when hit
[supertux.git] / src / object / thunderstorm.cpp
index 1aec362..656bd0a 100644 (file)
 #include "log.hpp"
 
 namespace {
-       const float LIGHTNING_DELAY = 2.0;
-       const float FLASH_DISPLAY_TIME = 0.1;
+       const float LIGHTNING_DELAY = 2.0f;
+       const float FLASH_DISPLAY_TIME = 0.1f;
 }
 
 Thunderstorm::Thunderstorm(const lisp::Lisp& reader)
-       : name(""), running(true), interval(10.0f)
+  : running(true), interval(10.0f)
 {
   reader.get("name", name);
   reader.get("running", running);
@@ -74,8 +74,8 @@ Thunderstorm::update(float )
   }
 }
 
-void 
-Thunderstorm::draw(DrawingContext& context) 
+void
+Thunderstorm::draw(DrawingContext& context)
 {
   if (!flash_display_timer.started()) return;
 
@@ -149,4 +149,3 @@ Thunderstorm::electrify()
 }
 
 IMPLEMENT_FACTORY(Thunderstorm, "thunderstorm");
-