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

two glitches fixed in Halloween

This commit is contained in:
Zeno Rogue 2017-10-15 19:55:56 +02:00
parent 9475419f1e
commit a45b32d2c8
2 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,7 @@ double randd() { return (rand() % 1000000) / 1000000. + .0000005; }
transmatrix cellrelmatrix(cell *c, int i) {
double d =
purehepta ? tessf : c->type == 6 ? hexhexdist : crossf;
purehepta ? tessf : (c->type == 6 && (i&1)) ? hexhexdist : crossf;
return ddspin(c, i) * xpush(d) * iddspin(c->mov[i], c->spin(i), euclid ? 0 : S42);
}

View File

@ -577,11 +577,12 @@ void drawqueue() {
for(int i = 0; i<siz; i++) ptds2[qp[ptds[i].prio]++] = &ptds[i];
for(int p: {PPR_REDWALLs, PPR_REDWALLs2, PPR_REDWALLs3, PPR_WALL3s})
for(int p: {PPR_REDWALLs, PPR_REDWALLs2, PPR_REDWALLs3, PPR_WALL3s,
PPR_LAKEWALL, PPR_INLAKEWALL, PPR_BELOWBOTTOM})
sort(&ptds2[qp0[p]], &ptds2[qp[p]],
[] (polytodraw* p1, polytodraw* p2) {
return intval(p1->u.poly.V * xpush0(.1), C0)
> intval(p2->u.poly.V * xpush0(.1), C0);
< intval(p2->u.poly.V * xpush0(.1), C0);
});
#endif