summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-05 13:43:07 +0200
committerGitHub <noreply@github.com>2020-06-05 13:43:07 +0200
commit98de658c8fdb7aa61bfe6fa8235c844ce801c47d (patch)
tree67925f365624af596c4fafdf83cee39489c17c21 /src/peds/Ped.cpp
parentProcessTrainAnnouncements (diff)
parentFix collision with peds heads (diff)
downloadre3-98de658c8fdb7aa61bfe6fa8235c844ce801c47d.tar
re3-98de658c8fdb7aa61bfe6fa8235c844ce801c47d.tar.gz
re3-98de658c8fdb7aa61bfe6fa8235c844ce801c47d.tar.bz2
re3-98de658c8fdb7aa61bfe6fa8235c844ce801c47d.tar.lz
re3-98de658c8fdb7aa61bfe6fa8235c844ce801c47d.tar.xz
re3-98de658c8fdb7aa61bfe6fa8235c844ce801c47d.tar.zst
re3-98de658c8fdb7aa61bfe6fa8235c844ce801c47d.zip
Diffstat (limited to 'src/peds/Ped.cpp')
-rw-r--r--src/peds/Ped.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index a2068645..eebfa099 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -5866,6 +5866,9 @@ CPed::Die(void)
uint8
CPed::DoesLOSBulletHitPed(CColPoint &colPoint)
{
+#ifdef FIX_BUGS
+ return 1;
+#else
uint8 retVal = 2;
float headZ = GetNodePosition(PED_HEAD).z;
@@ -5881,6 +5884,7 @@ CPed::DoesLOSBulletHitPed(CColPoint &colPoint)
retVal = 0;
return retVal;
+#endif
}
bool