summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-01-13 15:56:47 +0100
committerSergeanur <s.anureev@yandex.ua>2020-01-13 15:56:47 +0100
commitd482f097fec2d65a658bdf9087ed75ffb9ebb127 (patch)
treeb41ccefdb818b9d7dae10a9b04455e44652c8dbe /src
parentFix projectile crash (diff)
downloadre3-d482f097fec2d65a658bdf9087ed75ffb9ebb127.tar
re3-d482f097fec2d65a658bdf9087ed75ffb9ebb127.tar.gz
re3-d482f097fec2d65a658bdf9087ed75ffb9ebb127.tar.bz2
re3-d482f097fec2d65a658bdf9087ed75ffb9ebb127.tar.lz
re3-d482f097fec2d65a658bdf9087ed75ffb9ebb127.tar.xz
re3-d482f097fec2d65a658bdf9087ed75ffb9ebb127.tar.zst
re3-d482f097fec2d65a658bdf9087ed75ffb9ebb127.zip
Diffstat (limited to 'src')
-rw-r--r--src/weapons/ProjectileInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/weapons/ProjectileInfo.cpp b/src/weapons/ProjectileInfo.cpp
index 64d8b632..b33d2d62 100644
--- a/src/weapons/ProjectileInfo.cpp
+++ b/src/weapons/ProjectileInfo.cpp
@@ -88,7 +88,7 @@ CProjectileInfo::AddProjectile(CEntity *entity, eWeaponType weapon, CVector pos,
{
time = CTimer::GetTimeInMilliseconds() + 2000;
float scale = 0.22f * speed + 0.15f;
- if (scale >= 0.2f)
+ if (scale < 0.2f)
scale = 0.2f;
float angle = Atan2(-ped->GetForward().x, ped->GetForward().y);
matrix.SetTranslate(0.0f, 0.0f, 0.0f);