1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

fake_edgelength constant in parser

This commit is contained in:
Zeno Rogue 2021-08-08 18:29:49 +02:00
parent a8eef4b717
commit 4902d2db8d

View File

@ -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);