[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.

(cherry picked from commit b4e8560698)

# Conflicts:
#	apps/openmw/mwmp/LocalPlayer.cpp
0.6.3
David Cernat 7 years ago
parent 306252ecdc
commit 9d46de88e0

@ -184,8 +184,6 @@ bool LocalPlayer::charGenThread()
getNetworking()->getPlayerPacket(ID_PLAYER_CHARGEN)->Send();
}
sendCellStates();
// Set the last stage variable to 0 to indicate that CharGen is finished
charGenStage.end = 0;
}

@ -227,6 +227,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

Loading…
Cancel
Save