Default side for black player is black
This commit is contained in:
parent
38d9026865
commit
56699033d9
@ -56,6 +56,9 @@ fn main() {
|
|||||||
Some(role) => client.player.role = role.clone(),
|
Some(role) => client.player.role = role.clone(),
|
||||||
None => return,
|
None => return,
|
||||||
};
|
};
|
||||||
|
if client.player.role == UserRole::Black {
|
||||||
|
client.side = Color::Black;
|
||||||
|
}
|
||||||
if client.player.role == UserRole::Spectator {
|
if client.player.role == UserRole::Spectator {
|
||||||
println!(
|
println!(
|
||||||
"Hello, {} !\n\r You're spectating !",
|
"Hello, {} !\n\r You're spectating !",
|
||||||
|
Loading…
Reference in New Issue
Block a user