Badguys now get their deactivate() method called prior to being deactivated
authorChristoph Sommer <mail@christoph-sommer.de>
Fri, 26 May 2006 12:21:59 +0000 (12:21 +0000)
committerChristoph Sommer <mail@christoph-sommer.de>
Fri, 26 May 2006 12:21:59 +0000 (12:21 +0000)
SVN-Revision: 3592

src/badguy/badguy.cpp

index 57bf79b..676ecb7 100644 (file)
@@ -75,6 +75,7 @@ BadGuy::update(float elapsed_time)
     return;
   }
   if(is_offscreen()) {
+    if (state == STATE_ACTIVE) deactivate();
     set_state(STATE_INACTIVE);
   }