mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-05 07:38:19 +00:00
resend options when menu closes
This commit is contained in:
parent
ff7b5aeaf9
commit
0b1136060f
|
@ -2115,6 +2115,16 @@ void render_game()
|
|||
}
|
||||
}
|
||||
|
||||
// make sure to send our info again if the menu closes
|
||||
static bool menu_was_active = false;
|
||||
if(menu_active)
|
||||
menu_was_active = true;
|
||||
else if(menu_was_active)
|
||||
{
|
||||
send_info(false);
|
||||
menu_was_active = false;
|
||||
}
|
||||
|
||||
// handle chat input
|
||||
if (!menu_active)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue