fixed badguy respawning after being killed by a fireball
authorMatthias Braun <matze@braunis.de>
Fri, 31 Dec 2004 17:55:29 +0000 (17:55 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 31 Dec 2004 17:55:29 +0000 (17:55 +0000)
SVN-Revision: 2270

src/badguy/badguy.cpp

index e010794..0b80172 100644 (file)
@@ -200,7 +200,7 @@ BadGuy::set_state(State state)
       break;
     case STATE_INACTIVE:
       // was the badguy dead anyway?
-      if(laststate == STATE_SQUISHED || laststate == STATE_SQUISHED) {
+      if(laststate == STATE_SQUISHED || laststate == STATE_FALLING) {
         remove_me();
       }
       flags |= FLAG_NO_COLLDET;