From 3e0932093d52b9f6cce9b9846125e921a6e67768 Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Mon, 11 May 2020 00:17:55 -0400 Subject: [PATCH] Re-init regexes and other statics --- code/modules/maps/tg/reader.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/maps/tg/reader.dm b/code/modules/maps/tg/reader.dm index ffbc13be57..b7bf3561f5 100644 --- a/code/modules/maps/tg/reader.dm +++ b/code/modules/maps/tg/reader.dm @@ -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()