Stop dispense_timer on deactivate.
authorWolfgang Becker <uafr@gmx.de>
Sat, 30 Sep 2006 09:19:56 +0000 (09:19 +0000)
committerWolfgang Becker <uafr@gmx.de>
Sat, 30 Sep 2006 09:19:56 +0000 (09:19 +0000)
SVN-Revision: 4324

src/badguy/dispenser.cpp
src/badguy/dispenser.hpp

index c0fdbf8..2f3dce5 100644 (file)
@@ -66,6 +66,13 @@ Dispenser::activate()
    launch_badguy();
 }
 
+void
+Dispenser::deactivate()
+{
+   dispense_timer.stop();
+}
+
+//TODO: Add launching velocity to certain badguys
 bool
 Dispenser::collision_squished(Player& player)
 {
@@ -85,7 +92,6 @@ Dispenser::active_update(float )
   }
 }
 
-//TODO: Add launching velocity to certain badguys
 //      Add themed randomizer
 void
 Dispenser::launch_badguy()
index 90f2a3a..5313b4f 100644 (file)
@@ -29,6 +29,7 @@ public:
   Dispenser(const lisp::Lisp& reader);
 
   void activate();
+  void deactivate();
   void write(lisp::Writer& writer);
   void active_update(float elapsed_time);