1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-07 12:57:57 +00:00

added MAXMDIM guards in various places

This commit is contained in:
Zeno Rogue
2023-04-15 01:18:47 +02:00
parent 804c3897b8
commit e63feddb7c
4 changed files with 36 additions and 5 deletions

View File

@@ -488,8 +488,10 @@ bool behind3(shiftpoint h) {
return lp_apply(inverse_exp(h))[2] < 0;
if(pmodel == mdLiePerspective)
return lp_apply(lie_log(h))[2] < 0;
#if MAXMDIM >= 4
if(pmodel == mdRelPerspective)
return lp_apply(rel_log(h, false))[2] < 0;
#endif
return h[2] < 0;
}