Use vd setting when creating client

Former-commit-id: b9a32c6b2f1a61a407991507c63ba7d708723410
This commit is contained in:
Imbris
2019-05-26 16:13:42 -04:00
parent ec3176a471
commit 045f41dae7
4 changed files with 14 additions and 7 deletions

View File

@ -106,7 +106,10 @@ impl PlayState for MainMenuState {
// Don't try to connect if there is already a connection in progress.
client_init = client_init.or(Some(ClientInit::new(
(server_address, DEFAULT_PORT, false),
comp::Player::new(username.clone(), Some(10)),
comp::Player::new(
username.clone(),
Some(global_state.settings.graphics.view_distance),
),
false,
)));
}