diff options
author | /dev/humancontroller <devhc@example.com> | 2015-02-08 13:55:15 +0100 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-03-09 13:51:18 +0100 |
commit | b392b0d97f3ea048478059873ed6dec8afd9634b (patch) | |
tree | e3fb4a9ef70d89bfb70676fe33f9b493da7051ec /src/server/sv_ccmds.c | |
parent | 65bcf419d4b612b7d626447924fa0fe2079c18c2 (diff) |
implement part 1 of the multi-protocol functionality: protocols
this contains support for connecting via, and serving simultaneously via, any of the three protocols: latest, GPP and 1.1
alternate-1 means protocol 70 (GPP), alternate-2 means protocol 69 (1.1)
relevant cvars:
- net_alternateProtocols
- net_alt{1|2}port[6]
- sv_alt{1|2}master{1|...|5}
- sv_clAltProto{0|..|63}
Diffstat (limited to 'src/server/sv_ccmds.c')
-rw-r--r-- | src/server/sv_ccmds.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/sv_ccmds.c b/src/server/sv_ccmds.c index 48b1eb65..56c73aa8 100644 --- a/src/server/sv_ccmds.c +++ b/src/server/sv_ccmds.c @@ -45,6 +45,7 @@ static void SV_Map_f( void ) { qboolean killBots, cheat; char expanded[MAX_QPATH]; char mapname[MAX_QPATH]; + int a; int i; map = Cmd_Argv(1); @@ -88,8 +89,9 @@ static void SV_Map_f( void ) { // This forces the local master server IP address cache // to be updated on sending the next heartbeat - for( i = 0; i < MAX_MASTER_SERVERS; i++ ) - sv_master[ i ]->modified = qtrue; + for( a = 0; a < 3; ++a ) + for( i = 0; i < MAX_MASTER_SERVERS; i++ ) + sv_masters[ a ][ i ]->modified = qtrue; } /* |