From b4e8560698fbe9ef30e1c5e004bf7f928e85c6a8 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 13 Nov 2017 05:38:56 +0200 Subject: [PATCH] [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. --- apps/openmw/mwmp/LocalPlayer.cpp | 2 -- apps/openmw/mwmp/Main.cpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index f42bf9618..1dc0a0a2a 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -172,8 +172,6 @@ bool LocalPlayer::processCharGen() getNetworking()->getPlayerPacket(ID_PLAYER_CHARGEN)->Send(); } - sendCellStates(); - // Mark character generation as finished until overridden by a new ID_PLAYER_CHARGEN packet charGenState.isFinished = true; } diff --git a/apps/openmw/mwmp/Main.cpp b/apps/openmw/mwmp/Main.cpp index 85f436ea9..54cd6daff 100644 --- a/apps/openmw/mwmp/Main.cpp +++ b/apps/openmw/mwmp/Main.cpp @@ -226,6 +226,7 @@ void Main::updateWorld(float dt) const mNetworking->getPlayerPacket(ID_PLAYER_BASEINFO)->Send(); mNetworking->getPlayerPacket(ID_LOADED)->Send(); mLocalPlayer->updateStatsDynamic(true); + mLocalPlayer->sendCellStates(); get().getGUIController()->setChatVisible(true); } else