summaryrefslogtreecommitdiffstats
path: root/src/weapons/BulletInfo.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-06-13 12:57:25 +0200
committerSergeanur <s.anureev@yandex.ua>2020-06-13 12:57:25 +0200
commitbeb6f3bf8057232a1b1b5a1673d22cff618e3a83 (patch)
treeaf3911f35d37096c87af30807b48679351f1b809 /src/weapons/BulletInfo.cpp
parentminor fix (diff)
downloadre3-beb6f3bf8057232a1b1b5a1673d22cff618e3a83.tar
re3-beb6f3bf8057232a1b1b5a1673d22cff618e3a83.tar.gz
re3-beb6f3bf8057232a1b1b5a1673d22cff618e3a83.tar.bz2
re3-beb6f3bf8057232a1b1b5a1673d22cff618e3a83.tar.lz
re3-beb6f3bf8057232a1b1b5a1673d22cff618e3a83.tar.xz
re3-beb6f3bf8057232a1b1b5a1673d22cff618e3a83.tar.zst
re3-beb6f3bf8057232a1b1b5a1673d22cff618e3a83.zip
Diffstat (limited to 'src/weapons/BulletInfo.cpp')
-rw-r--r--src/weapons/BulletInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/weapons/BulletInfo.cpp b/src/weapons/BulletInfo.cpp
index 389e7486..26fc459d 100644
--- a/src/weapons/BulletInfo.cpp
+++ b/src/weapons/BulletInfo.cpp
@@ -22,6 +22,7 @@
#include "Weapon.h"
#include "WeaponInfo.h"
#include "World.h"
+#include "SurfaceTable.h"
#define BULLET_LIFETIME (1000)
#define NUM_PED_BLOOD_PARTICLES (8)
@@ -228,7 +229,7 @@ bool CBulletInfo::TestForSniperBullet(float x1, float x2, float y1, float y2, fl
#ifdef FIX_BUGS // original code is not going work anyway...
CColLine line(PlayerSniperBulletStart, PlayerSniperBulletEnd);
CColBox box;
- box.Set(CVector(x1, y1, z1), CVector(x2, y2, z2), 0, 0);
+ box.Set(CVector(x1, y1, z1), CVector(x2, y2, z2), SURFACE_DEFAULT, 0);
return CCollision::TestLineBox(line, box);
#else
float minP = 0.0f;