Default side for black player is black

This commit is contained in:
Artlef 2020-05-03 18:51:25 +02:00
parent 38d9026865
commit 56699033d9

View File

@ -56,6 +56,9 @@ fn main() {
Some(role) => client.player.role = role.clone(),
None => return,
};
if client.player.role == UserRole::Black {
client.side = Color::Black;
}
if client.player.role == UserRole::Spectator {
println!(
"Hello, {} !\n\r You're spectating !",