mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-06-03 10:30:56 +00:00
Killed the last #ifdef SERVERONLY (actually, changed to is_server)
This commit is contained in:
parent
440cc9f7d3
commit
4bf5222841
1 changed files with 3 additions and 3 deletions
|
@ -210,6 +210,8 @@ qboolean NET_GetPacket (void)
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
|
extern qboolean is_server;
|
||||||
|
|
||||||
void NET_SendPacket (int length, void *data, netadr_t to)
|
void NET_SendPacket (int length, void *data, netadr_t to)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -226,11 +228,9 @@ void NET_SendPacket (int length, void *data, netadr_t to)
|
||||||
if (err == WSAEWOULDBLOCK)
|
if (err == WSAEWOULDBLOCK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#ifndef SERVERONLY
|
if (err == WSAEADDRNOTAVAIL && is_server)
|
||||||
if (err == WSAEADDRNOTAVAIL)
|
|
||||||
Con_DPrintf("NET_SendPacket Warning: %i\n", err);
|
Con_DPrintf("NET_SendPacket Warning: %i\n", err);
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
Con_Printf ("NET_SendPacket ERROR: %i\n", errno);
|
Con_Printf ("NET_SendPacket ERROR: %i\n", errno);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue