aboutsummaryrefslogtreecommitdiff
path: root/src/game/Wintergrasp.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-11-11 12:59:25 -0800
committermaximius <none@none>2009-11-11 12:59:25 -0800
commit718fe5008e424119e14edd5d2524c432873e7a84 (patch)
treeb2cb28706a6fe8506a552996f50b5e646ba18f4e /src/game/Wintergrasp.cpp
parent43d2fe6db4a2f05115a95129c6ba69954195838a (diff)
*Cleanup
--HG-- branch : trunk
Diffstat (limited to 'src/game/Wintergrasp.cpp')
-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 315e0b6e0ec..a8397438324 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(((float)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 - (float)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)