mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Discord joins now force menu close and title demo stop
This prevents wierdness from ahving the menu open on teh connection screen It also prevents the connect command from erroring due to being in a demo
This commit is contained in:
parent
904f1703c5
commit
a58ae6c472
1 changed files with 3 additions and 0 deletions
|
|
@ -156,6 +156,9 @@ static void DRPC_HandleJoin(const char *secret)
|
|||
{
|
||||
char *ip = DRPC_XORIPString(secret);
|
||||
CONS_Printf("Connecting to %s via Discord\n", ip);
|
||||
M_ClearMenus(true); //Don't have menus open during connection screen
|
||||
if (demo.playback && demo.title)
|
||||
G_CheckDemoStatus(); //Stop the title demo, so that the connect command doesn't error if a demo is playing
|
||||
COM_BufAddText(va("connect \"%s\"\n", ip));
|
||||
free(ip);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue