From 4f4775a31bd6f6aa8e3896100aeded0f23c7169d Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 12 Aug 2009 20:27:00 -0500 Subject: [8339] Improved storing/restoring BG entry point * Introduced new table character_battleground_data * Entry point is now stored on BG enter event not join event * Entry point for dungeons is now correctly set to nearest graveyard (this prevent well known assert in GetInstance because of porting to already destroyed instance) * Teleporting from BG correctly restore mount state * Teleporting from BG correctly restore taxi flight (in multipath flight you will end up in nearest transition point on the route) Signed-off-by: ApoC --HG-- branch : trunk --- src/game/BattleGround.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/BattleGround.cpp') diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp index a80a06b3572..aeccd350c64 100644 --- a/src/game/BattleGround.cpp +++ b/src/game/BattleGround.cpp @@ -1071,7 +1071,7 @@ void BattleGround::RemovePlayerAtLeave(uint64 guid, bool Transport, bool SendPac plr->SetBGTeam(0); if (Transport) - plr->TeleportTo(plr->GetBattleGroundEntryPoint()); + plr->TeleportToBGEntryPoint(); sLog.outDetail("BATTLEGROUND: Removed player %s from BattleGround.", plr->GetName()); } -- cgit v1.2.3