mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Refactor handling of escape input a little
- Includes port of KartKrew/Kart-Public!250
This commit is contained in:
parent
921b667c3e
commit
7f2d28ea33
1 changed files with 7 additions and 2 deletions
|
|
@ -1923,13 +1923,18 @@ static boolean CL_ServerConnectionTicker(const char *tmpsave, tic_t *oldtic, tic
|
||||||
{
|
{
|
||||||
D_ProcessEvents(); //needed for menu system to receive inputs
|
D_ProcessEvents(); //needed for menu system to receive inputs
|
||||||
}
|
}
|
||||||
else
|
else if (netgame)
|
||||||
{
|
{
|
||||||
for (; eventtail != eventhead; eventtail = (eventtail+1) & (MAXEVENTS-1))
|
for (; eventtail != eventhead; eventtail = (eventtail+1) & (MAXEVENTS-1))
|
||||||
G_MapEventsToControls(&events[eventtail]);
|
G_MapEventsToControls(&events[eventtail]);
|
||||||
|
|
||||||
|
if (G_PlayerInputDown(0, gc_b, 1)
|
||||||
|
|| G_PlayerInputDown(0, gc_x, 1)
|
||||||
|
|| gamekeydown[0][KEY_ESCAPE])
|
||||||
|
cl_mode = CL_ABORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (G_PlayerInputDown(0, gc_b, 1) || G_PlayerInputDown(0, gc_x, 1) || gamekeydown[0][KEY_ESCAPE] || cl_mode == CL_ABORTED)
|
if (cl_mode == CL_ABORTED)
|
||||||
{
|
{
|
||||||
CONS_Printf(M_GetText("Network game synchronization aborted.\n"));
|
CONS_Printf(M_GetText("Network game synchronization aborted.\n"));
|
||||||
// M_StartMessage(M_GetText("Network game synchronization aborted.\n\nPress (B)\n"), NULL, MM_NOTHING);
|
// M_StartMessage(M_GetText("Network game synchronization aborted.\n\nPress (B)\n"), NULL, MM_NOTHING);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue