Wintergrasp: Working tenacity calculation, by RammboNr5
--HG-- branch : trunk
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user