Fixed weapons automatically firing immediately after pickup.

This commit is contained in:
Felix Ableitner 2013-08-20 21:57:26 +02:00
parent bc418263f1
commit b9cd2f3b87

View file

@ -100,6 +100,8 @@ Character::onDeath() {
mWorld.insert(mActiveWeapon); mWorld.insert(mActiveWeapon);
mActiveWeapon->drop(getPosition()); mActiveWeapon->drop(getPosition());
// To avoid the weapon continuing to fire after pickup.
mActiveWeapon->releaseTrigger();
} }