This commit is contained in:
2016-02-12 02:10:42 +01:00
parent 88c7c57671
commit 71533b52ae
4 changed files with 349 additions and 8 deletions
@@ -348,6 +348,9 @@ bool AssaultWeaponBehaviour::shoot(double damage)
}
EntityWrapper victim(m_World, pickData.Entity);
if (!victim.Valid()) {
return false;
}
// Don't let us shoot ourselves in the foot
if (victim == LocalPlayer) {