diff options
| author | megamage <none@none> | 2009-08-12 08:51:51 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-12 08:51:51 -0500 |
| commit | 99eafd6a522b8fb480182be87828a00a6f500575 (patch) | |
| tree | 298cd78ed419fb1731a35069e1fa3eb1c558e0cc /src/game/OutdoorPvPTF.cpp | |
| parent | cd78172c7d04e96bb1392cd6729d333b49518923 (diff) | |
*Allow players to capture siege workshops in wintergrasp.
--HG--
branch : trunk
Diffstat (limited to 'src/game/OutdoorPvPTF.cpp')
| -rw-r--r-- | src/game/OutdoorPvPTF.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/OutdoorPvPTF.cpp b/src/game/OutdoorPvPTF.cpp index 01fc9a10386..2b16d11ef73 100644 --- a/src/game/OutdoorPvPTF.cpp +++ b/src/game/OutdoorPvPTF.cpp @@ -104,9 +104,9 @@ bool OPvPCapturePointTF::HandlePlayerEnter(Player *plr) if(OPvPCapturePoint::HandlePlayerEnter(plr)) { plr->SendUpdateWorldState(TF_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(TF_UI_TOWER_SLIDER_POS, phase); - plr->SendUpdateWorldState(TF_UI_TOWER_SLIDER_N, m_NeutralValue); + plr->SendUpdateWorldState(TF_UI_TOWER_SLIDER_N, m_neutralValuePct); return true; } return false; @@ -301,9 +301,9 @@ void OPvPCapturePointTF::SendChangePhase() // send this too, sometimes the slider disappears, dunno why :( SendUpdateWorldState(TF_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(TF_UI_TOWER_SLIDER_POS, phase); // send this too, sometimes it resets :S - SendUpdateWorldState(TF_UI_TOWER_SLIDER_N, m_NeutralValue); + SendUpdateWorldState(TF_UI_TOWER_SLIDER_N, m_neutralValuePct); } |
