mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Rednukem: fix building with NETCODE_DISABLE
# Conflicts: # source/rr/src/game.cpp # source/rr/src/net.h
This commit is contained in:
parent
6f39b87d5b
commit
bd1523ef2d
2 changed files with 20 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
/*
|
/*
|
||||||
Copyright (C) 2016 EDuke32 developers and contributors
|
Copyright (C) 2016 EDuke32 developers and contributors
|
||||||
|
|
||||||
|
@ -7428,23 +7428,23 @@ MAIN_LOOP_RESTART:
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
//if (g_networkMode != NET_DEDICATED_SERVER)
|
|
||||||
//{
|
|
||||||
// if (RRRA && g_player[myconnectindex].ps->on_motorcycle)
|
|
||||||
// P_GetInputMotorcycle(myconnectindex);
|
|
||||||
// else if (RRRA && g_player[myconnectindex].ps->on_boat)
|
|
||||||
// P_GetInputBoat(myconnectindex);
|
|
||||||
// else
|
|
||||||
// P_GetInput(myconnectindex);
|
|
||||||
//}
|
|
||||||
|
|
||||||
//Bmemcpy(&inputfifo[0][myconnectindex], &localInput, sizeof(input_t));
|
|
||||||
|
|
||||||
if (!frameJustDrawn)
|
if (!frameJustDrawn)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
frameJustDrawn = false;
|
frameJustDrawn = false;
|
||||||
|
|
||||||
|
#ifdef NETCODE_DISABLE
|
||||||
|
if (RRRA && g_player[myconnectindex].ps->on_motorcycle)
|
||||||
|
P_GetInputMotorcycle(myconnectindex);
|
||||||
|
else if (RRRA && g_player[myconnectindex].ps->on_boat)
|
||||||
|
P_GetInputBoat(myconnectindex);
|
||||||
|
else
|
||||||
|
P_GetInput(myconnectindex);
|
||||||
|
|
||||||
|
inputfifo[g_player[myconnectindex].movefifoend&(MOVEFIFOSIZ-1)][myconnectindex] = localInput;
|
||||||
|
g_player[myconnectindex].movefifoend++;
|
||||||
|
#endif
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (ready2send == 0) break;
|
if (ready2send == 0) break;
|
||||||
|
|
|
@ -398,6 +398,13 @@ void Net_SendRTS(int ridiculeNum);
|
||||||
#define Net_SendTaunt(...) ((void)0)
|
#define Net_SendTaunt(...) ((void)0)
|
||||||
#define Net_SendRTS(...) ((void)0)
|
#define Net_SendRTS(...) ((void)0)
|
||||||
|
|
||||||
|
#define Net_WaitForEverybody(...) ((void)0)
|
||||||
|
#define initsynccrc(...) ((void)0)
|
||||||
|
#define Net_GetSyncStat(...) ((void)0)
|
||||||
|
#define Net_DisplaySyncMsg(...) ((void)0)
|
||||||
|
#define Net_ClearFIFO(...) ((void)0)
|
||||||
|
#define Net_GetInput(...) ((void)0)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
END_RR_NS
|
END_RR_NS
|
||||||
|
|
Loading…
Reference in a new issue