From d482f097fec2d65a658bdf9087ed75ffb9ebb127 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Mon, 13 Jan 2020 16:56:47 +0200 Subject: Fix molotov --- src/weapons/ProjectileInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3