Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Compile error + Fix (OutdoorPvPWG.cpp typo) #112

Open
GuguRD opened this issue Jul 18, 2010 · 0 comments
Open

Linux Compile error + Fix (OutdoorPvPWG.cpp typo) #112

GuguRD opened this issue Jul 18, 2010 · 0 comments

Comments

@GuguRD
Copy link

GuguRD commented Jul 18, 2010

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant