Fixes a bug with default values. (#3237)

This commit is contained in:
Erki
2017-08-05 22:36:14 +03:00
committed by GitHub
parent 85c0c763df
commit a50820a574
5 changed files with 14 additions and 2 deletions
+4
View File
@@ -160,6 +160,7 @@ var/list/gamemode_cache = list()
var/ban_legacy_system = 0 //Defines whether the server uses the legacy banning system with the files in /data or the SQL system. Config option in config.txt
var/use_age_restriction_for_jobs = 0 //Do jobs use account age restrictions? --requires database
var/use_age_restriction_for_antags = 0 //Do antags use account age restrictions? --requires database
var/age_restrictions_from_file = 0 // Are hardcoded values used or config ones?
var/sql_stats = 0 //Do we record round statistics on the database (deaths, round reports, population, etcetera) or not?
var/sql_whitelists = 0 //Defined whether the server uses an SQL based whitelist system, or the legacy one with two .txts. Config option in config.txt
var/sql_saves = 0 //Defines whether the server uses an SQL based character and preference saving system. Config option in config.txt
@@ -330,6 +331,9 @@ var/list/gamemode_cache = list()
if ("use_age_restriction_for_antags")
config.use_age_restriction_for_antags = 1
if ("load_age_restrictions_from_file")
config.age_restrictions_from_file = 1
if ("jobs_have_minimal_access")
config.jobs_have_minimal_access = 1