diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-02-26 20:31:26 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-02-26 20:31:26 +0200 |
commit | c5303c2ea4f5bb13d5a3800a5135c7fd27e6b9f6 (patch) | |
tree | bd8682dc715911936b5c1fd384ef90eccb61df7f /src/weapons | |
parent | 478f6e07d46823fdad4b66923b59b31e2b3ce3a3 (diff) |
Fix muzzleflash rotation
Diffstat (limited to 'src/weapons')
-rw-r--r-- | src/weapons/Weapon.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp index 7a54941f..8e2f02f9 100644 --- a/src/weapons/Weapon.cpp +++ b/src/weapons/Weapon.cpp @@ -1066,7 +1066,11 @@ CWeapon::FireInstantHit(CEntity *shooter, CVector *fireSource) if ( info->m_nFiringRate >= 50 || !(++counter & 1) ) { +#ifdef FIX_BUGS + AddGunFlashBigGuns(*fireSource, target); +#else AddGunFlashBigGuns(*fireSource, *fireSource + target); +#endif CVector gunshellPos = *fireSource; gunshellPos -= CVector(0.65f*ahead.x, 0.65f*ahead.y, 0.0f); |