Fixed weapons automatically firing immediately after pickup.
This commit is contained in:
parent
bc418263f1
commit
b9cd2f3b87
1 changed files with 2 additions and 0 deletions
|
@ -100,6 +100,8 @@ Character::onDeath() {
|
|||
|
||||
mWorld.insert(mActiveWeapon);
|
||||
mActiveWeapon->drop(getPosition());
|
||||
// To avoid the weapon continuing to fire after pickup.
|
||||
mActiveWeapon->releaseTrigger();
|
||||
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue