1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-02 10:48:04 +00:00

added CAP_RAY guard to intra stuff

This commit is contained in:
Zeno Rogue
2022-05-09 14:53:41 +02:00
parent 3c491fb7ac
commit b0c34c4f2c
5 changed files with 15 additions and 11 deletions

View File

@@ -6,7 +6,7 @@ EX namespace intra {
EX bool in;
#if MAXMDIM >= 4
#if CAP_RAY && MAXMDIM >= 4
#if HDR
/** information per every space connected with intra-portals */
struct intra_data {
@@ -931,11 +931,15 @@ EX void handle() {
#else
if(false) {}
#endif
#if CAP_RAY
else {
transmatrix M = ray::mirrorize(currentmap->ray_iadj(on_floor_of, floor_dir));
M = ToOld * M * inverse(ToOld);
return mid(at, M * at);
}
#else
else return at;
#endif
};
hyperpoint at = tC0(inverse(View));