Add a config option that makes gamemode respect required_players number. It defaults to no.

This commit is contained in:
variableundefined
2019-09-08 12:22:31 -04:00
parent b649b7f253
commit 7c88842f5f
3 changed files with 11 additions and 1 deletions
+5
View File
@@ -242,6 +242,9 @@
// Lavaland
var/lavaland_budget = 60
// Makes gamemodes respect player limits
var/enable_gamemode_player_limit = 0
/datum/configuration/New()
for(var/T in subtypesof(/datum/game_mode))
var/datum/game_mode/M = T
@@ -720,6 +723,8 @@
config.developer_express_start = 1
if("disable_localhost_admin")
config.disable_localhost_admin = 1
if("enable_gamemode_player_limit")
config.enable_gamemode_player_limit = 1
else
log_config("Unknown setting in configuration: '[name]'")