mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-21 19:44:04 +00:00
angles now can be given in quarterturns
This commit is contained in:
1
util.cpp
1
util.cpp
@@ -488,6 +488,7 @@ ld angle_unit(char ch) {
|
|||||||
if(ch == 'r') return 1;
|
if(ch == 'r') return 1;
|
||||||
if(ch == 'd') return degree;
|
if(ch == 'd') return degree;
|
||||||
if(ch == 't') return TAU;
|
if(ch == 't') return TAU;
|
||||||
|
if(ch == 'q') return TAU/4;
|
||||||
if(ch == 'l') return -1;
|
if(ch == 'l') return -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user