Don't have clients use private slots when sv_privatePassword is unset

This commit is contained in:
Zack Middleton 2016-05-15 23:47:01 -05:00
parent ab8bcf5c5b
commit c68e471430

View file

@ -488,7 +488,7 @@ void SV_DirectConnect( netadr_t from ) {
// check for privateClient password // check for privateClient password
password = Info_ValueForKey( userinfo, "password" ); password = Info_ValueForKey( userinfo, "password" );
if ( !strcmp( password, sv_privatePassword->string ) ) { if ( *password && !strcmp( password, sv_privatePassword->string ) ) {
startIndex = 0; startIndex = 0;
} else { } else {
// skip past the reserved slots // skip past the reserved slots