diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-01-25 18:06:49 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-01-25 18:06:49 +0000 |
commit | 32277386b62877999c2017146750a2449d52d447 (patch) | |
tree | 6d722e8673984d444cdb22fc5372e2b8645f7423 /NorthstarDedicatedTest/playlist.cpp | |
parent | e614f3797021959b008c2c502f9300501afae3ca (diff) | |
download | NorthstarLauncher-32277386b62877999c2017146750a2449d52d447.tar.gz NorthstarLauncher-32277386b62877999c2017146750a2449d52d447.zip |
use playlist max_players by default rather than requiring arg
Diffstat (limited to 'NorthstarDedicatedTest/playlist.cpp')
-rw-r--r-- | NorthstarDedicatedTest/playlist.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/NorthstarDedicatedTest/playlist.cpp b/NorthstarDedicatedTest/playlist.cpp index 9cbd0c05..5dfd4087 100644 --- a/NorthstarDedicatedTest/playlist.cpp +++ b/NorthstarDedicatedTest/playlist.cpp @@ -56,7 +56,7 @@ void SetPlaylistVarOverrideHook(const char* varName, const char* value) char* GetCurrentPlaylistVarHook(const char* varName, bool useOverrides) { - if (!useOverrides && CommandLine()->CheckParm("-maxplayersplaylist") && !strcmp(varName, "max_players")) + if (!useOverrides && !strcmp(varName, "max_players")) useOverrides = true; return GetCurrentPlaylistVarOriginal(varName, useOverrides); @@ -64,9 +64,6 @@ char* GetCurrentPlaylistVarHook(const char* varName, bool useOverrides) int GetCurrentGamemodeMaxPlayersHook() { - if (!CommandLine()->CheckParm("-maxplayersplaylist")) - return GetCurrentGamemodeMaxPlayers(); - char* maxPlayersStr = GetCurrentPlaylistVar("max_players", 0); if (!maxPlayersStr) return GetCurrentGamemodeMaxPlayers(); |