Wintergrasp: Working tenacity calculation, by RammboNr5

--HG--
branch : trunk
This commit is contained in:
tartalo
2009-11-11 21:16:48 +01:00
parent 56397ac612
commit a44517b1a9
+2 -2
View File
@@ -1255,9 +1255,9 @@ void OPvPWintergrasp::UpdateTenacityStack()
if (allianceNum && hordeNum) if (allianceNum && hordeNum)
{ {
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) 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) if (newStack == m_tenacityStack)