1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

rug:: euclid quotient auto-rotates correctly

This commit is contained in:
Zeno Rogue 2019-11-28 21:54:36 +01:00
parent 9f6ca746cd
commit 20d230cadb

View File

@ -253,7 +253,7 @@ EX rugpoint *addRugpoint(hyperpoint h, double dist) {
m->valid = false;
if(euclid && quotient && !bounded) {
hyperpoint h1 = eumove(euclid3::ascoord(euclid3::T0[1])) * C0;
hyperpoint h1 = inverse(models::euclidean_spin) * eumove(euclid3::ascoord(euclid3::T0[1])) * C0;
h1 /= sqhypot_d(2, h1);
if(nonorientable) h1 /= 2;
m->valid = good_shape = true;