mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
Stub NET_Init() for Unix and call it while initializing
This commit is contained in:
parent
d2177bb618
commit
32dc525124
3 changed files with 7 additions and 0 deletions
|
@ -481,6 +481,7 @@ typedef struct
|
|||
unsigned short port;
|
||||
} netadr_t;
|
||||
|
||||
void NET_Init (void);
|
||||
void NET_Shutdown (void);
|
||||
|
||||
void NET_Config (qboolean multiplayer);
|
||||
|
|
|
@ -236,6 +236,7 @@ void Qcommon_Init (int argc, char **argv)
|
|||
if (dedicated->value)
|
||||
Cmd_AddCommand ("quit", Com_Quit);
|
||||
|
||||
NET_Init();
|
||||
Netchan_Init ();
|
||||
SV_Init ();
|
||||
#ifndef DEDICATED_ONLY
|
||||
|
|
|
@ -180,6 +180,11 @@ SockadrToNetadr ( struct sockaddr_storage *s, netadr_t *a )
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
NET_Init ( )
|
||||
{
|
||||
}
|
||||
|
||||
qboolean
|
||||
NET_CompareAdr ( netadr_t a, netadr_t b )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue