mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-23 04:52:07 +00:00
Stub NET_Init() for Unix and call it while initializing
This commit is contained in:
parent
6c8799d0b8
commit
6aae3e23b9
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