Created
November 6, 2011 22:19
-
-
Save tobmaps/1343656 to your computer and use it in GitHub Desktop.
IoC vehicles respawn fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp | |
index e68adee..3a9472c 100755 | |
--- a/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp | |
+++ b/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp | |
@@ -135,7 +135,7 @@ void BattlegroundIC::PostUpdateImpl(uint32 diff) | |
if (nodePoint[i].nodeState == NODE_STATE_CONTROLLED_A || | |
nodePoint[i].nodeState == NODE_STATE_CONTROLLED_H) | |
{ | |
- if (nodePoint[i].timer <= diff) | |
+ if (docksTimer <= diff) | |
{ | |
// we need to confirm this, i am not sure if this every 3 minutes | |
for (uint8 u = (nodePoint[i].faction == TEAM_ALLIANCE ? BG_IC_NPC_CATAPULT_1_A : BG_IC_NPC_CATAPULT_1_H); u < (nodePoint[i].faction == TEAM_ALLIANCE ? BG_IC_NPC_CATAPULT_4_A : BG_IC_NPC_CATAPULT_4_H); u++) | |
@@ -158,7 +158,7 @@ void BattlegroundIC::PostUpdateImpl(uint32 diff) | |
} | |
docksTimer = DOCKS_UPDATE_TIME; | |
- } else nodePoint[i].timer -= diff; | |
+ } else docksTimer -= diff; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
not fully tested yet