From d9fef1b06e1ec3148583e9614e49e7a14fb0752a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 31 Aug 2018 19:15:02 +0200 Subject: [PATCH] fixed an issue with Windy Plains bubble animation, also made it work in all geometries --- graph.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/graph.cpp b/graph.cpp index 4a9c9fc6..a2a6606e 100644 --- a/graph.cpp +++ b/graph.cpp @@ -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);