hot-fix: apply lobby_min_players only on server (#697)
This commit is contained in:
parent
3e86213404
commit
c573ba893f
@ -30,7 +30,7 @@ namespace patches
|
|||||||
void scr_get_num_expected_players()
|
void scr_get_num_expected_players()
|
||||||
{
|
{
|
||||||
const auto mode = game::Com_SessionMode_GetMode();
|
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);
|
game::Scr_AddInt(game::SCRIPTINSTANCE_SERVER, lobby_min_players->current.value.integer);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user