mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-25 05:21:58 +00:00
Fix demos
This commit is contained in:
parent
ba644e67c7
commit
a5b47d2b45
3 changed files with 4 additions and 5 deletions
|
@ -248,7 +248,6 @@ typedef struct
|
|||
} server_static_t;
|
||||
|
||||
typedef struct foobar_s {
|
||||
qboolean demoplayback;
|
||||
int qport;
|
||||
} foobar_t;
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
*/
|
||||
#include "qwsvdef.h"
|
||||
|
||||
foobar_t cls = {true, 0};
|
||||
foobar_t cls = {0};
|
||||
|
||||
void
|
||||
Draw_BeginDisc(void)
|
||||
|
|
Loading…
Reference in a new issue