main: remove console chat activation, updates #479

This commit is contained in:
ice_iix 2021-02-18 17:40:45 -08:00
parent 7dcbac2a5d
commit 995cf981c5
1 changed files with 2 additions and 0 deletions

View File

@ -559,12 +559,14 @@ fn tick_all(
game.screen_sys game.screen_sys
.tick(delta, &mut game.renderer, &mut ui_container); .tick(delta, &mut game.renderer, &mut ui_container);
/* TODO: open console for chat messages
if let Some(received_chat_at) = game.server.received_chat_at { if let Some(received_chat_at) = game.server.received_chat_at {
if Instant::now().duration_since(received_chat_at).as_secs() < 5 { if Instant::now().duration_since(received_chat_at).as_secs() < 5 {
game.console.lock().unwrap().activate() game.console.lock().unwrap().activate()
// TODO: automatically deactivate the console after inactivity // TODO: automatically deactivate the console after inactivity
} }
} }
*/
game.console game.console
.lock() .lock()
.unwrap() .unwrap()