aboutsummaryrefslogtreecommitdiff
path: root/src/game/OutdoorPvPNA.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-12 08:51:51 -0500
committermegamage <none@none>2009-08-12 08:51:51 -0500
commit99eafd6a522b8fb480182be87828a00a6f500575 (patch)
tree298cd78ed419fb1731a35069e1fa3eb1c558e0cc /src/game/OutdoorPvPNA.cpp
parentcd78172c7d04e96bb1392cd6729d333b49518923 (diff)
*Allow players to capture siege workshops in wintergrasp.
--HG-- branch : trunk
Diffstat (limited to 'src/game/OutdoorPvPNA.cpp')
-rw-r--r--src/game/OutdoorPvPNA.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/OutdoorPvPNA.cpp b/src/game/OutdoorPvPNA.cpp
index d93cea4b3f8..e4d78e4d717 100644
--- a/src/game/OutdoorPvPNA.cpp
+++ b/src/game/OutdoorPvPNA.cpp
@@ -188,9 +188,9 @@ bool OPvPCapturePointNA::HandlePlayerEnter(Player *plr)
if(OPvPCapturePoint::HandlePlayerEnter(plr))
{
plr->SendUpdateWorldState(NA_UI_TOWER_SLIDER_DISPLAY, 1);
- uint32 phase = (uint32)ceil(( m_ShiftPhase + m_ShiftMaxPhase) / ( 2 * m_ShiftMaxPhase ) * 100.0f);
+ uint32 phase = (uint32)ceil(( m_value + m_maxValue) / ( 2 * m_maxValue ) * 100.0f);
plr->SendUpdateWorldState(NA_UI_TOWER_SLIDER_POS, phase);
- plr->SendUpdateWorldState(NA_UI_TOWER_SLIDER_N, m_NeutralValue);
+ plr->SendUpdateWorldState(NA_UI_TOWER_SLIDER_N, m_neutralValuePct);
return true;
}
return false;
@@ -619,9 +619,9 @@ void OPvPCapturePointNA::SendChangePhase()
// send this too, sometimes the slider disappears, dunno why :(
SendUpdateWorldState(NA_UI_TOWER_SLIDER_DISPLAY, 1);
// send these updates to only the ones in this objective
- uint32 phase = (uint32)ceil(( m_ShiftPhase + m_ShiftMaxPhase) / ( 2 * m_ShiftMaxPhase ) * 100.0f);
+ uint32 phase = (uint32)ceil(( m_value + m_maxValue) / ( 2 * m_maxValue ) * 100.0f);
SendUpdateWorldState(NA_UI_TOWER_SLIDER_POS, phase);
- SendUpdateWorldState(NA_UI_TOWER_SLIDER_N, m_NeutralValue);
+ SendUpdateWorldState(NA_UI_TOWER_SLIDER_N, m_neutralValuePct);
}
void OPvPCapturePointNA::UpdateHalaaWorldState()