1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

fixed set_view in product geometries

This commit is contained in:
Zeno Rogue 2021-04-23 20:11:44 +02:00
parent 4da935a4e2
commit 3f4135079c

View File

@ -2952,7 +2952,11 @@ EX void set_view(hyperpoint camera, hyperpoint forward, hyperpoint upward) {
if(det(rotator) < 0) rotator[0] = -rotator[0];
View = rotator * iso_inverse(rgpushxto0(camera));
View = iso_inverse(rgpushxto0(camera));
if(prod)
NLP = rotator;
else
View = rotator * View;
}
}