mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/BG: Isle of Conquest - fix worldstates
-sometimes not all worldstates were shown correctly
This commit is contained in:
@@ -570,8 +570,12 @@ void BattlegroundIC::UpdateNodeWorldState(ICNodePoint* nodePoint)
|
||||
uint32 worldstate = nodePoint->worldStates[nodePoint->nodeState];
|
||||
|
||||
// with this we are sure we dont bug the client
|
||||
for (uint8 i = 0; i < 4; ++i)
|
||||
for (uint8 i = 0; i < 5; ++i)
|
||||
{
|
||||
if (nodePoint->worldStates[i] == worldstate)
|
||||
continue;
|
||||
UpdateWorldState(nodePoint->worldStates[i], 0);
|
||||
}
|
||||
|
||||
UpdateWorldState(worldstate, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user