Linux Compile error + Fix (OutdoorPvPWG.cpp typo)
Opened this issue · 0 comments
There is a Typo here
[ 43%] Building CXX object src/server/game/CMakeFiles/game.dir/OutdoorPvP/Zones/OutdoorPvPWG.cpp.o
/home/repos/PhantomCore/src/server/game/OutdoorPvP/Zones/OutdoorPvPWG.cpp: In member function âvirtual bool OutdoorPvPWG::SetupOutdoorPvP()â:
/home/repos/PhantomCore/src/server/game/OutdoorPvP/Zones/OutdoorPvPWG.cpp:392: error: âIN_MILISECONDSâ was not declared in this scope
/home/repos/PhantomCore/src/server/game/OutdoorPvP/Zones/OutdoorPvPWG.cpp: In member function âvoid OutdoorPvPWG::StartBattle()â:
/home/repos/PhantomCore/src/server/game/OutdoorPvP/Zones/OutdoorPvPWG.cpp:1471: error: âIN_MILISECONDSâ was not declared in this scope
/home/repos/PhantomCore/src/server/game/OutdoorPvP/Zones/OutdoorPvPWG.cpp: In member function âvoid OutdoorPvPWG::EndBattle()â:
/home/repos/PhantomCore/src/server/game/OutdoorPvP/Zones/OutdoorPvPWG.cpp:1741: error: âIN_MILISECONDSâ was not declared in this scope
Patch to fix:
diff --git a/src/server/game/OutdoorPvP/Zones/OutdoorPvPWG.cpp b/src/server/game/OutdoorPvP/Zones/OutdoorPvPWG.cpp
index 067a881..95757ed 100644
--- a/src/server/game/OutdoorPvP/Zones/OutdoorPvPWG.cpp
+++ b/src/server/game/OutdoorPvP/Zones/OutdoorPvPWG.cpp
@@ -389,7 +389,7 @@ QueryResult_AutoPtr result = WorldDatabase.PQuery("SELECT guid, id FROM creature
_LoadTeamPair(m_creEntryPair, OutdoorPvPWGCreEntryPair);
m_wartime = false;
- m_timer = sWorld.getConfig(CONFIG_OUTDOORPVP_WINTERGRASP_START_TIME) * MINUTE * IN_MILISECONDS;
+ m_timer = sWorld.getConfig(CONFIG_OUTDOORPVP_WINTERGRASP_START_TIME) * MINUTE * IN_MILLISECONDS;
sWorld.SendWintergraspState();
m_towerDamagedCount[TEAM_ALLIANCE] = 0;
m_towerDestroyedCount[TEAM_ALLIANCE] = 0;
@@ -1468,7 +1468,7 @@ void OutdoorPvPWG::StartBattle()
int CountDef=0;
int CountAtk=0;
m_wartime = true;
- m_timer = sWorld.getConfig(CONFIG_OUTDOORPVP_WINTERGRASP_BATTLE_TIME) * MINUTE * IN_MILISECONDS;
+ m_timer = sWorld.getConfig(CONFIG_OUTDOORPVP_WINTERGRASP_BATTLE_TIME) * MINUTE * IN_MILLISECONDS;
for (PlayerSet::iterator itr = m_players[getDefenderTeam()].begin(); itr != m_players[getDefenderTeam()].end(); ++itr)
{
@@ -1738,7 +1738,7 @@ for (PlayerSet::iterator itr = m_players[getAttackerTeam()].begin(); itr != m_pl
}
m_wartime = false;
- m_timer = sWorld.getConfig(CONFIG_OUTDOORPVP_WINTERGRASP_INTERVAL) * MINUTE * IN_MILISECONDS;
+ m_timer = sWorld.getConfig(CONFIG_OUTDOORPVP_WINTERGRASP_INTERVAL) * MINUTE * IN_MILLISECONDS;
TeamCastSpell(getAttackerTeam(), SPELL_TELEPORT_DALARAN);
RemoveOfflinePlayerWGAuras();
// Update timer in players battlegrounds tab