summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-08-27 19:27:28 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2020-08-27 19:27:28 +0200
commit210c7b8785779a621f608540571513efcca1021a (patch)
treef8da58a1324795e7ca027580ea65430721ffda87 /src
parentweapons (diff)
downloadre3-210c7b8785779a621f608540571513efcca1021a.tar
re3-210c7b8785779a621f608540571513efcca1021a.tar.gz
re3-210c7b8785779a621f608540571513efcca1021a.tar.bz2
re3-210c7b8785779a621f608540571513efcca1021a.tar.lz
re3-210c7b8785779a621f608540571513efcca1021a.tar.xz
re3-210c7b8785779a621f608540571513efcca1021a.tar.zst
re3-210c7b8785779a621f608540571513efcca1021a.zip
Diffstat (limited to 'src')
-rw-r--r--src/render/SpecialFX.h5
-rw-r--r--src/weapons/Weapon.cpp2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/render/SpecialFX.h b/src/render/SpecialFX.h
index 3255c9c1..55ad6cb9 100644
--- a/src/render/SpecialFX.h
+++ b/src/render/SpecialFX.h
@@ -60,7 +60,10 @@ public:
//TODO(MIAMI)
static void AddTrace(CVector *, CVector *, float, unsigned int, unsigned char) {}
- static void AddTrace(CVector *, CVector *, int32 weapontype, class CEntity *shooter) {}
+ static void AddTrace(CVector *a, CVector *b, int32 weapontype, class CEntity *shooter)
+ {
+ AddTrace(a, b); //TODO: temp
+ }
};
enum
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp
index a3918a61..d5705ace 100644
--- a/src/weapons/Weapon.cpp
+++ b/src/weapons/Weapon.cpp
@@ -2412,7 +2412,7 @@ CWeapon::FireInstantHitFromCar(CVehicle *shooter, bool left, bool right)
else if ( right )
target = source + info->m_fRange * shooter->GetRight();
else
- target = source + info->m_fRange * shooter->GetRight();
+ target = source + info->m_fRange * shooter->GetForward();
}
else if ( left )