diff --git a/blizzard.cpp b/blizzard.cpp index d16488db..9dc48863 100644 --- a/blizzard.cpp +++ b/blizzard.cpp @@ -4,10 +4,12 @@ double randd() { return (rand() + .5) / (RAND_MAX + 1.); } double cellgfxdist(cell *c, int i) { + if(gp::on) return hdist0(tC0(shmup::calc_relative_matrix(c->mov[i], c))); return nonbitrunc ? tessf * gp::scale : (c->type == 6 && (i&1)) ? hexhexdist : crossf; } transmatrix cellrelmatrix(cell *c, int i) { + if(gp::on) return shmup::calc_relative_matrix(c->mov[i], c); double d = cellgfxdist(c, i); return ddspin(c, i) * xpush(d) * iddspin(c->mov[i], c->spin(i), euclid ? 0 : S42); }