1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-21 08:57:39 +00:00

replaced first_period by ::T0 use

This commit is contained in:
Zeno Rogue
2019-11-27 22:01:02 +01:00
parent 66164d873c
commit 9ce5687f57
2 changed files with 5 additions and 8 deletions

View File

@@ -253,7 +253,7 @@ EX rugpoint *addRugpoint(hyperpoint h, double dist) {
m->valid = false;
if(euclid && quotient && !bounded) {
hyperpoint h1 = eumove(first_period()) * C0;
hyperpoint h1 = eumove(euclid3::ascoord(euclid3::T0[1])) * C0;
h1 /= sqhypot_d(2, h1);
if(nonorientable) h1 /= 2;
m->valid = good_shape = true;
@@ -635,7 +635,7 @@ EX void buildRug() {
for(int j=0; j<c->type; j++) addTriangle(v, p[j], p[(j+1) % c->type]);
if((euclid && quotient) && nonorientable) {
transmatrix T = ggmatrix(c) * eumove(first_period());
transmatrix T = ggmatrix(c) * eumove(euclid3::ascoord(euclid3::T0[1]));
rugpoint *Tv = addRugpoint(T * C0, 0);
for(int j=0; j<c->type; j++) p[j] = findOrAddRugpoint(T * get_corner_position(c, j), v->dist);
for(int j=0; j<c->type; j++) addTriangle(Tv, p[j], p[(j+1) % c->type]);