From 9183a6f66bf91c12a2e5f8ed094db4ee83b8d0a0 Mon Sep 17 00:00:00 2001 From: Tad Hardesty Date: Mon, 29 Apr 2019 01:59:29 -0700 Subject: [PATCH] Clean up workaround for fixed compiler bug (#43698) --- .../admin/verbs/SDQL2/SDQL_2_parser.dm | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/code/modules/admin/verbs/SDQL2/SDQL_2_parser.dm b/code/modules/admin/verbs/SDQL2/SDQL_2_parser.dm index 83592d27681..4c48bbccde0 100644 --- a/code/modules/admin/verbs/SDQL2/SDQL_2_parser.dm +++ b/code/modules/admin/verbs/SDQL2/SDQL_2_parser.dm @@ -482,18 +482,13 @@ temp_expression_list = list() i = expression(i, temp_expression_list) - // Ok, what the fuck BYOND? - // Not having these lines here causes the parser to die - // on an error saying that list/token() doesn't exist as a proc. - // These lines prevent that. - // I assume the compiler/VM is shitting itself and swapping out some variables internally? - // While throwing in debug logging it disappeared - // And these 3 lines prevent it from happening while being quiet. - // So.. it works. - // Don't touch it. - var/whatthefuck = i - whatthefuck = src.type - whatthefuck = whatthefuck +#if MIN_COMPILER_VERSION > 512 +#warn Remove this outdated workaround +#elif DM_BUILD < 1467 + // http://www.byond.com/forum/post/2445083 + var/dummy = src.type + dummy = dummy +#endif while(token(i) && token(i) != "]")