1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-22 01:17:39 +00:00

fixed displayspin in syntetic

This commit is contained in:
Zeno Rogue
2018-08-19 16:28:36 +02:00
parent 3ac47f53f5
commit e1c49a83fa
19 changed files with 68 additions and 74 deletions

View File

@@ -242,7 +242,7 @@ bool step(int delta) {
cells.emplace_back();
cellinfo& s = cells.back();
s.patterndir = -1;
s.owner = h, s.p = spin(hrand(1000)) * xpush(.01) * C0;
s.owner = h, s.p = xspinpush0(hrand(1000), .01);
set_relmatrices(s);
}
}
@@ -489,9 +489,7 @@ bool step(int delta) {
ld dist = hcrossf / 2;
ld dists[8];
for(int i=0; i<S7; i++) {
dists[i] = hdist(s.p, spin(hexshift - i * ALPHA) * xpush(-hcrossf) * C0);
// calc_relative_matrix(s.owner->move(i), s.owner, s.p) * C0);
// spin(2 * M_PI * i / S7) * xpush(hcrossf) * C0);
dists[i] = hdist(s.p, xspinpush0(hexshift - i * ALPHA, -hcrossf));
if(dists[i] < dist)
d = i, dist = dists[i];
}