1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-20 12:20:01 +00:00

fixed an issue with Windy Plains bubble animation, also made it work in all geometries

This commit is contained in:
Zeno Rogue 2018-08-31 19:15:02 +02:00
parent eda3f04a39
commit d9fef1b06e

View File

@ -4736,11 +4736,14 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
if(hdir1 < hdir0-M_PI) hdir1 += 2 * M_PI;
if(hdir1 >= hdir0+M_PI) hdir1 -= 2 * M_PI;
int hdir = (hdir1*ph1+hdir0*(1-ph1));
ld hdir = (hdir1*ph1+hdir0*(1-ph1));
transmatrix V0 = spin(hdir);
double ldist = PURE ? crossf : c->type == 6 ? .2840 : 0.3399;
double ldist =
cellgfxdist(c, whirlwind::dfrom[i]) * (1-ph1)/2 +
cellgfxdist(c, whirlwind::dto[i]) * ph1/2;
// PURE ? crossf : c->type == 6 ? .2840 : 0.3399;
poly_outline = OUTLINE_TRANS;
queuepoly((*Vdp)*V0*xpush(ldist*(2*ph1-1)), shDisk, aircol);