[8373] Correctly set bgInstanceID to 0 when log in into alredy ended BG.
This should fix problem that players who logged off during BG are after every
next login into game teleported to BG entry position.
Signed-off-by: ApoC <[email protected]>
--HG--
branch : trunk
This commit is contained in:
@@ -14836,6 +14836,9 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder )
|
||||
const WorldLocation& _loc = GetBattleGroundEntryPoint();
|
||||
mapId = _loc.mapid; instanceId = 0;
|
||||
Relocate(_loc.coord_x, _loc.coord_y, _loc.coord_z, _loc.orientation);
|
||||
|
||||
// We are not in BG anymore
|
||||
m_bgData.bgInstanceID = 0;
|
||||
}
|
||||
}
|
||||
// currently we do not support transport in bg
|
||||
|
||||
Reference in New Issue
Block a user