* Some game bug fixes from http://www.quake3world.com/ubb/Forum4/HTML/006208.html
This commit is contained in:
parent
317d40b046
commit
82f7989714
3 changed files with 29 additions and 4 deletions
|
@ -923,7 +923,7 @@ char *ClientConnect( int clientNum, qboolean firstTime, qboolean isBot ) {
|
|||
// we don't check password for bots and local client
|
||||
// NOTE: local client <-> "ip" "localhost"
|
||||
// this means this client is not running in our current process
|
||||
if ( !( ent->r.svFlags & SVF_BOT ) && (strcmp(value, "localhost") != 0)) {
|
||||
if ( !isBot && (strcmp(value, "localhost") != 0)) {
|
||||
// check for a password
|
||||
value = Info_ValueForKey (userinfo, "password");
|
||||
if ( g_password.string[0] && Q_stricmp( g_password.string, "none" ) &&
|
||||
|
@ -1324,6 +1324,16 @@ void ClientDisconnect( int clientNum ) {
|
|||
ClientUserinfoChanged( level.sortedClients[0] );
|
||||
}
|
||||
|
||||
if( g_gametype.integer == GT_TOURNAMENT &&
|
||||
ent->client->sess.sessionTeam == TEAM_FREE &&
|
||||
level.intermissiontime ) {
|
||||
|
||||
trap_SendConsoleCommand( EXEC_APPEND, "map_restart 0\n" );
|
||||
level.restarted = qtrue;
|
||||
level.changemap = NULL;
|
||||
level.intermissiontime = 0;
|
||||
}
|
||||
|
||||
trap_UnlinkEntity (ent);
|
||||
ent->s.modelindex = 0;
|
||||
ent->inuse = qfalse;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue