Revert my dumb error

This commit is contained in:
Dan Olson 2000-05-14 18:46:05 +00:00
parent a201c4686c
commit 1fc4396f12
3 changed files with 5 additions and 4 deletions

View file

@ -248,6 +248,7 @@ typedef struct
} server_static_t; } server_static_t;
typedef struct foobar_s { typedef struct foobar_s {
qboolean demoplayback;
int qport; int qport;
} foobar_t; } foobar_t;

View file

@ -137,7 +137,7 @@ void Netchan_OutOfBand (netadr_t adr, int length, byte *data)
// send the datagram // send the datagram
//zoid, no input in demo playback mode //zoid, no input in demo playback mode
if (!cls.demoplayback && !is_server) if (!cls.demoplayback)
NET_SendPacket (send.cursize, send.data, adr); NET_SendPacket (send.cursize, send.data, adr);
} }
@ -296,7 +296,7 @@ void Netchan_Transmit (netchan_t *chan, int length, byte *data)
chan->outgoing_time[i] = realtime; chan->outgoing_time[i] = realtime;
//zoid, no input in demo playback mode //zoid, no input in demo playback mode
if (!cls.demoplayback && !is_server) if (!cls.demoplayback)
NET_SendPacket (send.cursize, send.data, chan->remote_address); NET_SendPacket (send.cursize, send.data, chan->remote_address);
if (chan->cleartime < realtime) if (chan->cleartime < realtime)
@ -330,7 +330,7 @@ qboolean Netchan_Process (netchan_t *chan)
unsigned reliable_ack, reliable_message; unsigned reliable_ack, reliable_message;
int qport; int qport;
if ( !cls.demoplayback && !is_server && if ( !cls.demoplayback &&
!NET_CompareAdr (net_from, chan->remote_address)) !NET_CompareAdr (net_from, chan->remote_address))
return false; return false;
else if (is_server && !NET_CompareAdr (net_from, chan->remote_address)) else if (is_server && !NET_CompareAdr (net_from, chan->remote_address))

View file

@ -27,7 +27,7 @@
*/ */
#include "qwsvdef.h" #include "qwsvdef.h"
foobar_t cls = {0}; foobar_t cls = {true, 0};
void void
Draw_BeginDisc(void) Draw_BeginDisc(void)