Fix demos

This commit is contained in:
Dan Olson 2000-05-14 17:28:08 +00:00
parent ba644e67c7
commit a5b47d2b45
3 changed files with 4 additions and 5 deletions

View file

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

View file

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

View file

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