Merge branch 'remove-net-settings-singleplayer' into 'master'

Stop saving singleplayer settings to network settings

See merge request veloren/veloren!157

Former-commit-id: 77ee0dad47bd0af10497d3db0d5a196e51d6211d
This commit is contained in:
Marcel 2019-05-20 21:16:05 +00:00
commit 9a31c20662

View File

@ -46,14 +46,6 @@ impl PlayState for StartSingleplayerState {
}
};
let mut net_settings = &mut global_state.settings.networking;
net_settings.username = username.clone();
if !net_settings.servers.contains(&server_address) {
net_settings.servers.push(server_address.clone());
}
// TODO: Handle this result.
global_state.settings.save_to_file();
PlayStateResult::Push(Box::new(CharSelectionState::new(
&mut global_state.window,
std::rc::Rc::new(std::cell::RefCell::new(client)),