Pause music when pressing ESC during a level and resume it when exiting the pause...
[supertux.git] / src / object / light.cpp
index bd00cef..34ebea8 100644 (file)
 #include "sprite/sprite.hpp"
 #include "sprite/sprite_manager.hpp"
 
-Light::Light(const Vector& center, const Color& color) : 
-  position(center), 
-  color(color),
+Light::Light(const Vector& center, const Color& color_) :
+  position(center),
+  color(color_),
   sprite()
 {
-  sprite = sprite_manager->create("images/objects/lightmap_light/lightmap_light.sprite");
+  sprite = SpriteManager::current()->create("images/objects/lightmap_light/lightmap_light.sprite");
 }
 
 Light::~Light()