aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortartalo <none@none>2009-11-11 21:16:48 +0100
committertartalo <none@none>2009-11-11 21:16:48 +0100
commita44517b1a9b08e908de5c19e9b0f57e716e3a791 (patch)
tree746bd40bd51a9cccc4b97fe234495bfa0e816aa3 /src
parent56397ac61268b28129ef46c770d178b5bf269f89 (diff)
Wintergrasp: Working tenacity calculation, by RammboNr5
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Wintergrasp.cpp4
1 files changed, 2 insertions, 2 deletions
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)