diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-10-06 21:20:38 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-10-06 21:20:38 +0000 |
commit | 8c81e98c2ae39b84efda70df9eb30a6d8a7a45be (patch) | |
tree | 487f48ffe999aa70ca6d64d720618662793627f3 /source/sv_user.c | |
parent | 55fed75b9137922047e6e4cf836a3e230f01c610 (diff) |
Fixed sv_force_reconnect not working with R1Q2 clients.
Manully issuing 'reconnect' at client console in-game
does what it really should.
Diffstat (limited to 'source/sv_user.c')
-rw-r--r-- | source/sv_user.c | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/source/sv_user.c b/source/sv_user.c index 6bd6dc2..55360bd 100644 --- a/source/sv_user.c +++ b/source/sv_user.c @@ -349,22 +349,6 @@ static void SV_New_f( void ) { SV_ClientCommand( sv_client, "\n" ); - // send version string request - if( !sv_client->versionString ) { - SV_ClientCommand( sv_client, "cmd \177c version $version\n" ); - } - - // send reconnect var request - if( sv_force_reconnect->string[0] && !sv_client->reconnect_done ) { - if( NET_IsLocalAddress( &sv_client->netchan->remote_address ) ) { - sv_client->reconnect_done = qtrue; - } else { - SV_ClientCommand( sv_client, "cmd \177c connect $%s\n", - sv_client->reconnect_var ); - } - } - - // // serverdata needs to go over for all types of servers // to make sure the protocol is right, and to set the gamedir @@ -404,6 +388,21 @@ static void SV_New_f( void ) { SV_ClientCommand( sv_client, "\n" ); + // send version string request + if( !sv_client->versionString ) { + SV_ClientCommand( sv_client, "cmd \177c version $version\n" ); + } + + // send reconnect var request + if( sv_force_reconnect->string[0] && !sv_client->reconnect_done ) { + if( NET_IsLocalAddress( &sv_client->netchan->remote_address ) ) { + sv_client->reconnect_done = qtrue; + } else { + SV_ClientCommand( sv_client, "cmd \177c connect $%s\n", + sv_client->reconnect_var ); + } + } + Com_DPrintf( "Going from cs_connected to cs_primed for %s\n", sv_client->name ); sv_client->state = cs_primed; |