mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-07 08:52:01 +00:00
fix NONET builds
This commit is contained in:
parent
29aad5b7d5
commit
9cec9fbe97
1 changed files with 5 additions and 0 deletions
5
src/d_clisrv.c
Normal file → Executable file
5
src/d_clisrv.c
Normal file → Executable file
|
@ -2437,12 +2437,17 @@ 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
|
||||||
{
|
{
|
||||||
|
#ifndef NONET
|
||||||
// my hand has been forced and I am dearly sorry for this awful hack :vomit:
|
// my hand has been forced and I am dearly sorry for this awful hack :vomit:
|
||||||
for (; eventtail != eventhead; eventtail = (eventtail+1) & (MAXEVENTS-1))
|
for (; eventtail != eventhead; eventtail = (eventtail+1) & (MAXEVENTS-1))
|
||||||
{
|
{
|
||||||
if (!Snake_Joy_Grabber(&events[eventtail]))
|
if (!Snake_Joy_Grabber(&events[eventtail]))
|
||||||
G_MapEventsToControls(&events[eventtail]);
|
G_MapEventsToControls(&events[eventtail]);
|
||||||
}
|
}
|
||||||
|
#else // woopsie doodles forgot to disable the above in NONET builds - ashi
|
||||||
|
for (; eventtail != eventhead; eventtail = (eventtail+1) & (MAXEVENTS-1))
|
||||||
|
G_MapEventsToControls(&events[eventtail]);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gamekeydown[KEY_ESCAPE] || gamekeydown[KEY_JOY1+1] || cl_mode == CL_ABORTED)
|
if (gamekeydown[KEY_ESCAPE] || gamekeydown[KEY_JOY1+1] || cl_mode == CL_ABORTED)
|
||||||
|
|
Loading…
Reference in a new issue