mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
fix(Core/Vehicle): Exit vehicle on reconnect to prevent stuck state (#25378)
Co-authored-by: Claude Opus 4.6 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
c39ee954d1
commit
805ccc81e7
@@ -1130,6 +1130,13 @@ void WorldSession::HandlePlayerLoginToCharInWorld(Player* pCurrChar)
|
||||
ChatHandler chH = ChatHandler(this);
|
||||
m_playerLoading = true;
|
||||
|
||||
// Exit vehicle on reconnect - the client has fully reset so
|
||||
// the player can no longer control the vehicle. Without this
|
||||
// the player is stuck: server-side still seated, but the
|
||||
// client has no vehicle UI or movement control.
|
||||
if (pCurrChar->GetVehicle())
|
||||
pCurrChar->ExitVehicle();
|
||||
|
||||
pCurrChar->SendDungeonDifficulty(false);
|
||||
|
||||
WorldPacket data(SMSG_LOGIN_VERIFY_WORLD, 20);
|
||||
|
||||
Reference in New Issue
Block a user