summaryrefslogtreecommitdiffstats
path: root/src/weapons
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-04-16 04:07:32 +0200
committereray orçunus <erayorcunus@gmail.com>2020-04-16 04:07:32 +0200
commitc22e59abab331376cdc8557a863eb2584b4bef4b (patch)
treea0981e25dd92d06888922b449c2d96468763d4c3 /src/weapons
parentFixed bridge despawns (diff)
downloadre3-c22e59abab331376cdc8557a863eb2584b4bef4b.tar
re3-c22e59abab331376cdc8557a863eb2584b4bef4b.tar.gz
re3-c22e59abab331376cdc8557a863eb2584b4bef4b.tar.bz2
re3-c22e59abab331376cdc8557a863eb2584b4bef4b.tar.lz
re3-c22e59abab331376cdc8557a863eb2584b4bef4b.tar.xz
re3-c22e59abab331376cdc8557a863eb2584b4bef4b.tar.zst
re3-c22e59abab331376cdc8557a863eb2584b4bef4b.zip
Diffstat (limited to '')
-rw-r--r--src/weapons/Weapon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp
index 7b6b4170..98154e93 100644
--- a/src/weapons/Weapon.cpp
+++ b/src/weapons/Weapon.cpp
@@ -2162,7 +2162,7 @@ CWeapon::MakePedsJumpAtShot(CPhysical *shooter, CVector *source, CVector *target
&& ped->GetPosition().y > miny && ped->GetPosition().y < maxy
&& ped->GetPosition().z > minz && ped->GetPosition().z < maxz )
{
- if ( ped != FindPlayerPed() && (uint8)(ped->m_randomSeed ^ CGeneral::GetRandomNumber()) & 31 )
+ if ( ped != FindPlayerPed() && !((uint8)(ped->m_randomSeed ^ CGeneral::GetRandomNumber()) & 31) )
ped->SetEvasiveDive(shooter, 1);
}
}