aboutsummaryrefslogtreecommitdiff
path: root/src/game/OutdoorPvP.cpp
diff options
context:
space:
mode:
authorw12x <none@none>2008-12-22 18:36:25 +0100
committerw12x <none@none>2008-12-22 18:36:25 +0100
commit657ee403e37eae8cf0af89f09c44c64169c97234 (patch)
tree305ffbd5c2e82108359c668f7f07ea75c22e00f7 /src/game/OutdoorPvP.cpp
parent65ef38963ddc60e05491ca9d3e2685913c0038bb (diff)
Performance improvements in outdoorpvp handling.
--HG-- branch : trunk
Diffstat (limited to 'src/game/OutdoorPvP.cpp')
-rw-r--r--src/game/OutdoorPvP.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/game/OutdoorPvP.cpp b/src/game/OutdoorPvP.cpp
index df72ed28140..8d99fa4c165 100644
--- a/src/game/OutdoorPvP.cpp
+++ b/src/game/OutdoorPvP.cpp
@@ -28,7 +28,7 @@
OutdoorPvPObjective::OutdoorPvPObjective(OutdoorPvP * pvp)
: m_PvP(pvp), m_AllianceActivePlayerCount(0), m_HordeActivePlayerCount(0),
-m_ShiftTimer(0), m_ShiftPhase(0), m_ShiftMaxPhase(0), m_OldPhase(0),
+m_ShiftPhase(0), m_ShiftMaxPhase(0), m_OldPhase(0),
m_State(0), m_OldState(0), m_CapturePoint(0), m_NeutralValue(0), m_ShiftMaxCaptureSpeed(0), m_CapturePointCreature(0)
{
}
@@ -456,9 +456,6 @@ bool OutdoorPvP::Update(uint32 diff)
bool OutdoorPvPObjective::Update(uint32 diff)
{
uint32 Challenger = 0;
- if(m_ShiftTimer<diff)
- {
- m_ShiftTimer = OUTDOORPVP_OBJECTIVE_UPDATE_INTERVAL;
// get the difference of numbers
float fact_diff = (m_AllianceActivePlayerCount - m_HordeActivePlayerCount);
@@ -526,9 +523,6 @@ bool OutdoorPvPObjective::Update(uint32 diff)
}
return true;
- } else m_ShiftTimer-=diff;
-
- return false;
}
bool OutdoorPvPObjective::HandleCaptureCreaturePlayerMoveInLos(Player * p, Creature * c)