From bb9c699f35e100137990a2d0e23eb31e70d56433 Mon Sep 17 00:00:00 2001 From: nuborn Date: Mon, 1 Dec 2014 18:34:16 +0100 Subject: [PATCH] use consistent values for prediction --- src/game/client/gameclient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 9aeefc7d9..f8aed883a 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -1265,7 +1265,7 @@ void CGameClient::OnPredict() { CLocalProjectile NewProj; NewProj.Init(this, &World, Collision(), pProj); - if(fabs(1.0f - length(NewProj.m_Direction)) < 0.01) + if(fabs(1.0f - length(NewProj.m_Direction)) < 0.015) { if(!NewProj.m_ExtraInfo) { @@ -1857,7 +1857,7 @@ void CLocalProjectile::Init(CGameClient *pGameClient, CWorldCore *pWorld, CColli } else { - bool StandardVel = (fabs(length(m_Direction) - 1.0f) < 0.01); + bool StandardVel = (fabs(1.0f - length(m_Direction)) < 0.015); m_Owner = -1; m_Explosive = ((m_Type == WEAPON_GRENADE && StandardVel) ? true : false); m_Bouncing = 0;