From 4902d2db8dfa6042a12b14e2dc40016e9149b151 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 8 Aug 2021 18:29:49 +0200 Subject: [PATCH] fake_edgelength constant in parser --- util.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/util.cpp b/util.cpp index fdd51e1c..ff7d1b7d 100644 --- a/util.cpp +++ b/util.cpp @@ -339,6 +339,7 @@ cld exp_parser::parse(int prio) { else if(number == "random") res = randd(); else if(number == "mousez") res = cld(mousex - current_display->xcenter, mousey - current_display->ycenter) / cld(current_display->radius, 0); else if(number == "shot") res = inHighQual ? 1 : 0; + else if(number == "fake_edgelength") res = arcm::fake_current.edgelength; else if(number[0] >= 'a' && number[0] <= 'z') throw hr_parse_exception("unknown value: " + number); else if(number[0] >= 'A' && number[0] <= 'Z') throw hr_parse_exception("unknown value: " + number); else if(number[0] == '_') throw hr_parse_exception("unknown value: " + number);