1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-30 03:50:34 +00:00

fixed material for SL2

This commit is contained in:
Zeno Rogue 2020-05-15 15:00:07 +02:00
parent 9be05182fe
commit ab29609b19

View File

@ -388,6 +388,7 @@ EX ld hypot_d(int d, const hyperpoint& h) {
EX ld material(const hyperpoint& h) {
if(sphere) return intval(h, Hypc);
else if(hyperbolic) return -intval(h, Hypc);
else if(sl2) return h[2]*h[2] + h[3]*h[3] - h[0]*h[0] - h[1]*h[1];
else return h[LDIM] - 1;
}