Merge branch 'fix-chat-after-char-switch' into 'master'

Fix issue with chat after char selection

See merge request veloren/veloren!3103
This commit is contained in:
Joshua Barretto 2022-01-16 16:58:54 +00:00
commit 37c14037cb

View File

@ -865,7 +865,10 @@ impl Client {
/// Request a state transition to `ClientState::Registered` from an ingame
/// state.
pub fn request_remove_character(&mut self) { self.send_msg(ClientGeneral::ExitInGame); }
pub fn request_remove_character(&mut self) {
self.chat_mode = ChatMode::World;
self.send_msg(ClientGeneral::ExitInGame);
}
pub fn set_view_distance(&mut self, view_distance: u32) {
let view_distance = view_distance.max(1).min(65);