Let treewillowisp glow. Not perfect for blue ones.
authorWolfgang Becker <uafr@gmx.de>
Sun, 27 May 2007 10:37:17 +0000 (10:37 +0000)
committerWolfgang Becker <uafr@gmx.de>
Sun, 27 May 2007 10:37:17 +0000 (10:37 +0000)
SVN-Revision: 5059

src/badguy/treewillowisp.cpp
src/badguy/treewillowisp.hpp

index db417a6..e1eb027 100644 (file)
@@ -92,6 +92,19 @@ TreeWillOWisp::collides(GameObject& other, const CollisionHit& ) {
 }
 
 void
+TreeWillOWisp::draw(DrawingContext& context)
+{
+  sprite->draw(context, get_pos(), layer);
+
+  context.push_target();
+  context.set_target(DrawingContext::LIGHTMAP);
+
+  sprite->draw(context, get_pos(), layer);
+
+  context.pop_target();
+}
+
+void
 TreeWillOWisp::active_update(float elapsed_time)
 {
   // remove TreeWillOWisp if it has completely vanished
index 9cea671..c95cbc8 100644 (file)
@@ -48,6 +48,8 @@ public:
   virtual bool is_freezable() const { return false; }
   virtual void kill_fall() { vanish(); }
 
+  virtual void draw(DrawingContext& context);
+
 protected:
   virtual bool collides(GameObject& other, const CollisionHit& hit);
   HitResponse collision_player(Player& player, const CollisionHit& hit);