mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-28 11:00:34 +00:00
parser:: MAX_EDGE and MAX_VALENCE constants are now available
This commit is contained in:
parent
0301ae44db
commit
0acebce55a
2
util.cpp
2
util.cpp
@ -391,6 +391,8 @@ cld exp_parser::parse(int prio) {
|
||||
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 == "MAX_EDGE") res = FULL_EDGE;
|
||||
else if(number == "MAX_VALENCE") res = 120;
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user