#include <config.h>
#include "willowisp.hpp"
-#include "msg.hpp"
+#include "log.hpp"
#include "game_session.hpp"
static const float FLYSPEED = 64; /**< speed in px per second */
}
void
+WillOWisp::draw(DrawingContext& context)
+{
+ sprite->draw(context, get_pos(), LAYER_OBJECTS);
+
+ context.push_target();
+ context.set_target(DrawingContext::LIGHTMAP);
+
+ sprite->draw(context, get_pos(), LAYER_OBJECTS);
+
+ context.pop_target();
+}
+
+void
WillOWisp::active_update(float elapsed_time)
{
Player* player = get_nearest_player();
sprite->set_action("idle");
delete soundSource;
- soundSource = sound_manager->create_sound_source("sounds/rain.wav");
+ soundSource = sound_manager->create_sound_source("sounds/willowisp.wav");
if(!soundSource) {
- msg_warning("Couldn't start WillOWisp sound");
+ log_warning << "Couldn't start WillOWisp sound" << std::endl;
return;
}
soundSource->set_position(get_pos());