Don't clear the keymap when loading from file so that the default config is preserved
[supertux.git] / src / object / pulsing_light.cpp
index 2fff27c..a37a7c0 100644 (file)
 
 #include "math/random_generator.hpp"
 
-PulsingLight::PulsingLight(const Vector& center, float cycle_len, float min_alpha, float max_alpha, const Color& color) :
-  Light(center, color),
-  min_alpha(min_alpha),
-  max_alpha(max_alpha), 
-  cycle_len(cycle_len), 
+PulsingLight::PulsingLight(const Vector& center, float cycle_len_, float min_alpha_, float max_alpha_, const Color& color_) :
+  Light(center, color_),
+  min_alpha(min_alpha_),
+  max_alpha(max_alpha_),
+  cycle_len(cycle_len_),
   t(0)
 {
   assert(cycle_len > 0);