mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Initialize demo_protocols from the com_protocol integer value
This commit is contained in:
parent
94ab4a5ac5
commit
efce4703ca
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,7 @@ cvar_t *g_scriptcheck;
|
|||
cvar_t *g_showopcodes;
|
||||
|
||||
int demo_protocols[] =
|
||||
{ 8, 0 };
|
||||
{ 0, 0 }; // the first value of the array will be replaced by com_protocol
|
||||
|
||||
#define MAX_NUM_ARGVS 50
|
||||
|
||||
|
@ -1757,6 +1757,8 @@ void Com_Init( char *commandLine ) {
|
|||
con_autochat = Cvar_Get("con_autochat", "1", CVAR_ARCHIVE);
|
||||
#endif
|
||||
|
||||
demo_protocols[0] = com_protocol->integer;
|
||||
|
||||
Sys_Init();
|
||||
Netchan_Init( Com_Milliseconds() & 0xffff ); // pick a port value that should be nice and random
|
||||
SV_Init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue