diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-06-15 16:44:47 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-06-15 16:44:47 +0200 |
commit | 655eaa36ce4dfbe3c8f7d46097d87d513a384b5f (patch) | |
tree | aa16b934b8623fa16e0dcc149069a5e55115a345 /src/weapons/BulletInfo.cpp | |
parent | Fix vehicle cam. zoom values (diff) | |
parent | more cleanup (diff) | |
download | re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar.gz re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar.bz2 re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar.lz re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar.xz re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar.zst re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.zip |
Diffstat (limited to 'src/weapons/BulletInfo.cpp')
-rw-r--r-- | src/weapons/BulletInfo.cpp | 3 |
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; |