Fix a typo in SOTA that prevented players to respawn in one of the graveyards

--HG--
branch : trunk
This commit is contained in:
Spp
2010-04-07 16:27:17 +02:00
parent 9923df7745
commit 7afdb17ed3
+1 -1
View File
@@ -539,7 +539,7 @@ WorldSafeLocsEntry const* BattleGroundSA::GetClosestGraveYard(Player* player)
ret = sWorldSafeLocsStore.LookupEntry(safeloc); ret = sWorldSafeLocsStore.LookupEntry(safeloc);
nearest = sqrt((ret->x - x)*(ret->x - x) + (ret->y - y)*(ret->y - y)+(ret->z - z)*(ret->z - z)); nearest = sqrt((ret->x - x)*(ret->x - x) + (ret->y - y)*(ret->y - y)+(ret->z - z)*(ret->z - z));
for(uint8 i = BG_SA_LEFT_CAPTURABLE_GY; i < BG_SA_MAX_GY; i++) for(uint8 i = BG_SA_RIGHT_CAPTURABLE_GY; i < BG_SA_MAX_GY; i++)
{ {
if(GraveyardStatus[i] != player->GetTeamId()) if(GraveyardStatus[i] != player->GetTeamId())
continue; continue;