Re-init regexes and other statics

This commit is contained in:
Aronai Sieyes
2020-05-11 00:17:55 -04:00
parent 7dcd7efd67
commit 3e0932093d

View File

@@ -30,6 +30,12 @@ GLOBAL_DATUM_INIT(_preloader, /dmm_suite/preloader, new)
*
*/
/dmm_suite/load_map(dmm_file as file, x_offset as num, y_offset as num, z_offset as num, cropMap as num, measureOnly as num, no_changeturf as num, orientation as num)
dmmRegex = new/regex({""(\[a-zA-Z]+)" = \\(((?:.|\n)*?)\\)\n(?!\t)|\\((\\d+),(\\d+),(\\d+)\\) = \\{"(\[a-zA-Z\n]*)"\\}"}, "g")
trimQuotesRegex = new/regex({"^\[\\s\n]+"?|"?\[\\s\n]+$|^"|"$"}, "g")
trimRegex = new/regex("^\[\\s\n]+|\[\\s\n]+$", "g")
modelCache = list()
//How I wish for RAII
if(!measureOnly)
Master.StartLoadingMap()