hot-fix: apply lobby_min_players only on server (#697)

This commit is contained in:
Edo 2023-05-13 19:30:42 +01:00 committed by GitHub
parent 3e86213404
commit c573ba893f

View File

@ -30,7 +30,7 @@ namespace patches
void scr_get_num_expected_players()
{
const auto mode = game::Com_SessionMode_GetMode();
if (mode == game::MODE_ZOMBIES || mode == game::MODE_CAMPAIGN)
if (game::is_server() && (mode == game::MODE_ZOMBIES || mode == game::MODE_CAMPAIGN))
{
game::Scr_AddInt(game::SCRIPTINSTANCE_SERVER, lobby_min_players->current.value.integer);
}