1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-17 10:49:58 +00:00

fixed Rug in arb::

This commit is contained in:
Zeno Rogue 2020-04-22 01:45:13 +02:00
parent 1914a3c1bc
commit b53e85d1ff

View File

@ -533,7 +533,7 @@ EX void buildRug() {
cell *c = p.first; cell *c = p.first;
rugpoint *v = p.second; rugpoint *v = p.second;
if(arcm::in() || (euclid && quotient)) { if(arcm::in() || arb::in() || (euclid && quotient)) {
vector<rugpoint*> p(c->type+1); vector<rugpoint*> p(c->type+1);
for(int j=0; j<c->type; j++) p[j] = findOrAddRugpoint(ggmatrix(c) * get_corner_position(c, j), v->dist); for(int j=0; j<c->type; j++) p[j] = findOrAddRugpoint(ggmatrix(c) * get_corner_position(c, j), v->dist);
for(int j=0; j<c->type; j++) addTriangle(v, p[j], p[(j+1) % c->type]); for(int j=0; j<c->type; j++) addTriangle(v, p[j], p[(j+1) % c->type]);