[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:
David Cernat 2017-11-13 05:38:56 +02:00
parent 926106cf8c
commit b4e8560698
2 changed files with 1 additions and 2 deletions

View file

@ -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;
} }

View file

@ -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