forked from mirror/openmw-tes3mp
[Client] Send cell states correctly after inputting name
Previously, initial cell states were sent in LocalPlayer::processCharGen() and were ignored by the server because the player was not yet regarded as loaded. The result was that existing players logging in could not see each other until they went through at least one cell change.
This commit is contained in:
parent
926106cf8c
commit
b4e8560698
2 changed files with 1 additions and 2 deletions
|
@ -172,8 +172,6 @@ bool LocalPlayer::processCharGen()
|
||||||
getNetworking()->getPlayerPacket(ID_PLAYER_CHARGEN)->Send();
|
getNetworking()->getPlayerPacket(ID_PLAYER_CHARGEN)->Send();
|
||||||
}
|
}
|
||||||
|
|
||||||
sendCellStates();
|
|
||||||
|
|
||||||
// Mark character generation as finished until overridden by a new ID_PLAYER_CHARGEN packet
|
// Mark character generation as finished until overridden by a new ID_PLAYER_CHARGEN packet
|
||||||
charGenState.isFinished = true;
|
charGenState.isFinished = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -226,6 +226,7 @@ void Main::updateWorld(float dt) const
|
||||||
mNetworking->getPlayerPacket(ID_PLAYER_BASEINFO)->Send();
|
mNetworking->getPlayerPacket(ID_PLAYER_BASEINFO)->Send();
|
||||||
mNetworking->getPlayerPacket(ID_LOADED)->Send();
|
mNetworking->getPlayerPacket(ID_LOADED)->Send();
|
||||||
mLocalPlayer->updateStatsDynamic(true);
|
mLocalPlayer->updateStatsDynamic(true);
|
||||||
|
mLocalPlayer->sendCellStates();
|
||||||
get().getGUIController()->setChatVisible(true);
|
get().getGUIController()->setChatVisible(true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue