diff options
-rw-r--r-- | src/render/SpecialFX.h | 5 | ||||
-rw-r--r-- | src/weapons/Weapon.cpp | 2 |
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 ) |