fixup! Add ascii mode: @ print the board using only ascii

This commit is contained in:
Artlef 2020-11-29 01:51:21 +01:00
parent cb6ad49e85
commit 27be72f3be

View File

@ -358,7 +358,10 @@ fn start_keyboard_input_thread(
let b = bytes.next().unwrap().unwrap(); let b = bytes.next().unwrap().unwrap();
let e = parse_event(b, &mut bytes).unwrap(); let e = parse_event(b, &mut bytes).unwrap();
let is_player_turn = is_player_turn.lock().unwrap(); let is_player_turn = is_player_turn.lock().unwrap();
if !*is_player_turn && e != Event::Key(Key::Ctrl('c')) { if !*is_player_turn
&& e != Event::Key(Key::Ctrl('c'))
&& e != Event::Key(Key::Char('@'))
{
//ignore input when it's not the client turn //ignore input when it's not the client turn
continue; continue;
} }