mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
parser:: edgelen value
This commit is contained in:
parent
d64c5e338c
commit
e881f3b8cb
1
util.cpp
1
util.cpp
@ -375,6 +375,7 @@ cld exp_parser::parse(int prio) {
|
||||
else if(number == "psl_steps") res = cgi.psl_steps;
|
||||
else if(number == "single_step") res = cgi.single_step;
|
||||
else if(number == "step") res = hdist0(tC0(currentmap->adj(cwt.at, 0)));
|
||||
else if(number == "edgelen") res = hdist(get_corner_position(cwt.at, 0), get_corner_position(cwt.at, 1));
|
||||
else if(number == "mousey") res = mousey;
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user