mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-05 10:17:03 +00:00
parser:: 'deg' as a default constant
This commit is contained in:
parent
bce9dbda7d
commit
a83220c34e
1
util.cpp
1
util.cpp
@ -255,6 +255,7 @@ cld exp_parser::parse(int prio) {
|
||||
else if(number == "ms") res = ticks;
|
||||
else if(number[0] == '0' && number[1] == 'x') res = strtoll(number.c_str()+2, NULL, 16);
|
||||
else if(number == "mousex") res = mousex;
|
||||
else if(number == "deg") res = degree;
|
||||
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…
x
Reference in New Issue
Block a user