1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-21 13:28:05 +00:00

more adjustments to disabled CAP_*

This commit is contained in:
Zeno Rogue
2019-09-13 03:10:26 +02:00
parent 9a0507ba58
commit a3d9711ec2
8 changed files with 34 additions and 13 deletions

View File

@@ -1090,6 +1090,10 @@ EX bool handleCompass() {
return false;
}
#if CAP_ORIENTATION
EX transmatrix getOrientation();
#endif
// orientation sensitivity
EX namespace ors {
@@ -1100,10 +1104,10 @@ int when_enabled;
transmatrix last_orientation;
transmatrix relative_matrix = Id;
string choices[3] = {"OFF", "relative", "absolute"};
EX string choices[3] = {"OFF", "relative", "absolute"};
#if CAP_ORIENTATION
transmatrix getOrientation() {
EX transmatrix getOrientation() {
return MirrorX * hr::getOrientation() * MirrorX;
}
#endif