Move map errors to their own log file (#43376)

In interest of getting things fixed without having to constantly crawl
through game.log to find map issues, moved them to their own log file.
This commit is contained in:
ShizCalev
2019-03-30 13:54:55 -07:00
committed by Tad Hardesty
parent a91c6f70b1
commit f2cea780aa
12 changed files with 34 additions and 21 deletions
+3 -1
View File
@@ -22,7 +22,9 @@ GLOBAL_DATUM_INIT(_preloader, /datum/map_preloader, new)
value = deepCopyList(value)
#ifdef TESTING
if(what.vars[attribute] == value)
GLOB.dirty_vars += "<font color=green>[what.type]</font> at [AREACOORD(what)] - <b>VAR:</b> <font color=red>[attribute] = [isnull(value) ? "null" : (isnum(value) ? value : "\"[value]\"")]</font>"
var/message = "<font color=green>[what.type]</font> at [AREACOORD(what)] - <b>VAR:</b> <font color=red>[attribute] = [isnull(value) ? "null" : (isnum(value) ? value : "\"[value]\"")]</font>"
log_mapping("DIRTY VAR: [message]")
GLOB.dirty_vars += message
#endif
what.vars[attribute] = value