From a44517b1a9b08e908de5c19e9b0f57e716e3a791 Mon Sep 17 00:00:00 2001 From: tartalo Date: Wed, 11 Nov 2009 21:16:48 +0100 Subject: Wintergrasp: Working tenacity calculation, by RammboNr5 --HG-- branch : trunk --- src/game/Wintergrasp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/Wintergrasp.cpp b/src/game/Wintergrasp.cpp index 5a3157028e3..315e0b6e0ec 100644 --- a/src/game/Wintergrasp.cpp +++ b/src/game/Wintergrasp.cpp @@ -1255,9 +1255,9 @@ void OPvPWintergrasp::UpdateTenacityStack() if (allianceNum && hordeNum) { if (allianceNum < hordeNum) - newStack = int32((hordeNum / (float)allianceNum - 1)*4); // positive, should cast on alliance + newStack = int32(((float)hordeNum / (float)allianceNum - 1)*4); // positive, should cast on alliance else if (allianceNum > hordeNum) - newStack = int32((1 - allianceNum / (float)hordeNum)*4); // negative, should cast on horde + newStack = int32((1 - (float)allianceNum / (float)hordeNum)*4); // negative, should cast on horde } if (newStack == m_tenacityStack) -- cgit v1.2.3