mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
two glitches fixed in Halloween
This commit is contained in:
parent
9475419f1e
commit
a45b32d2c8
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user