mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 16:10:14 +00:00
Fix single-player position not loading on login
loadSinglePlayerCharacterState was updating the character struct but not movementInfo, which startSinglePlayer uses for spawn position. Now sets movementInfo.x/y/z/orientation from saved state.
This commit is contained in:
parent
9e3d12c0dc
commit
3347a84656
1 changed files with 6 additions and 0 deletions
|
|
@ -1530,6 +1530,12 @@ bool GameHandler::loadSinglePlayerCharacterState(uint64_t guid) {
|
|||
spSavedOrientation_[guid] = orientation;
|
||||
if (!hasState) return false;
|
||||
|
||||
// Update movementInfo so startSinglePlayer can use it for spawning
|
||||
movementInfo.x = posX;
|
||||
movementInfo.y = posY;
|
||||
movementInfo.z = posZ;
|
||||
movementInfo.orientation = orientation;
|
||||
|
||||
// Update character list entry
|
||||
for (auto& ch : characters) {
|
||||
if (ch.guid == guid) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue