/** CheckNeedPass. */ public static void CheckNeedPass() { int need; // if password or spectator_password has changed, update needpass // as needed if (password.modified || spectator_password.modified) { password.modified = spectator_password.modified = false; need = 0; if ((password.string.length() > 0) && 0 != Lib.Q_stricmp(password.string, "none")) need |= 1; if ((spectator_password.string.length() > 0) && 0 != Lib.Q_stricmp(spectator_password.string, "none")) need |= 2; ConsoleVariables.Set("needpass", "" + need); } }