Core/BG: Isle of Conquest - fix worldstates

-sometimes not all worldstates were shown correctly
This commit is contained in:
gerripeach
2013-11-29 17:07:15 +08:00
parent 06f5011071
commit aef2d39631

View File

@@ -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);
}