[MIRROR] Fixes some mapping errors not using the mapping error log. [MDB IGNORE] (#10805)

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

Should help prevent #64066 from reoccurring.

* Fixes some mapping errors not using the mapping error log.

Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-01-19 17:21:17 +00:00
committed by GitHub
co-authored by ShizCalev
parent d4a3e9a564
commit 1e4ba0273c
7 changed files with 20 additions and 15 deletions
@@ -349,7 +349,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)