Fixes some mapping errors not using the mapping error log. (#64114)

Should help prevent #64066 from reoccurring.
This commit is contained in:
ShizCalev
2022-01-18 12:18:04 -05:00
committed by GitHub
parent b4c08c4bd5
commit 7b471582d8
7 changed files with 20 additions and 15 deletions

View File

@@ -350,7 +350,9 @@ Example config:
if ("map")
currentmap = load_map_config(data, MAP_DIRECTORY_MAPS)
if(currentmap.defaulted)
log_config("Failed to load map config for [data]!")
var/error_message = "Failed to load map config for [data]!"
log_config(error_message)
log_mapping(error_message, TRUE)
currentmap = null
if ("minplayers","minplayer")
currentmap.config_min_users = text2num(data)