From 6b3bb78a1918818e5567ee37aab035cbdb7cd69c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 4 May 2018 02:41:09 +0200 Subject: [PATCH] cellgfxdist and cellrelmatrix work correctly in gp --- blizzard.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); }