[7254] Cleanups and batter checking in homebind/bgEntryPoint code.

* Load homebind data early in Player::LoadFromDB and use instead initital race points
  in cases need some safe point if current coordinate broken by some reason.
* Store BG entry point in to WorldLocation and simplify calls.
* Set bg entry point at GM teleports to battleground for correct
  auto-recall position at battleground end.
This commit is contained in:
VladimirMangos 2009-02-09 15:44:18 +03:00
parent e97c7ad9c5
commit 8af53064eb
8 changed files with 58 additions and 65 deletions

View file

@ -94,6 +94,11 @@ class MANGOS_DLL_DECL MapManager : public MaNGOS::Singleton<MapManager, MaNGOS::
return IsValidMAP(mapid) && MaNGOS::IsValidMapCoord(x,y,z,o);
}
static bool IsValidMapCoord(WorldLocation const& loc)
{
return IsValidMapCoord(loc.mapid,loc.x,loc.y,loc.z,loc.o);
}
void DoDelayedMovesAndRemoves();
void LoadTransports();