[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 <apoc@nymfe.net>
--HG--
branch : trunk
This commit is contained in:
1 parent
c31a744771
commit
a984c3a1d9
1 file changed
+3
@@ -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