[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.
new-script-api
David Cernat 7 years ago
parent 926106cf8c
commit b4e8560698

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

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

Loading…
Cancel
Save