[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:
megamage
2009-08-17 16:07:46 -05:00
parent c31a744771
commit a984c3a1d9
+3
View File
@@ -14836,6 +14836,9 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder )
const WorldLocation& _loc = GetBattleGroundEntryPoint(); const WorldLocation& _loc = GetBattleGroundEntryPoint();
mapId = _loc.mapid; instanceId = 0; mapId = _loc.mapid; instanceId = 0;
Relocate(_loc.coord_x, _loc.coord_y, _loc.coord_z, _loc.orientation); 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 // currently we do not support transport in bg