1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-18 04:02:07 +00:00

adjusted for older compilers

This commit is contained in:
Zeno Rogue
2019-11-30 18:28:29 +01:00
parent 42125679a7
commit 89cfc2bce1
4 changed files with 17 additions and 15 deletions
+2 -2
View File
@@ -192,7 +192,7 @@ EX namespace models {
if(euclid) {
euclidean_spin = pispin * inverse(cview() * master_relative(centerover, true));
euclidean_spin = gpushxto0(euclidean_spin * C0) * euclidean_spin;
hyperpoint h = inverse(euclidean_spin) * (C0 + (eumove(to_coord({1,0}))*C0 - C0) * spiral_x + (eumove(to_coord({0,1}))*C0 - C0) * spiral_y);
hyperpoint h = inverse(euclidean_spin) * (C0 + (eumove(to_coord(gp::loc{1,0}))*C0 - C0) * spiral_x + (eumove(to_coord(gp::loc{0,1}))*C0 - C0) * spiral_y);
spiral_multiplier = cld(0, 2 * M_PI) / cld(h[0], h[1]);
}
@@ -267,7 +267,7 @@ EX namespace models {
for(int y=0; y<=200; y++)
for(int x=-200; x<=200; x++) {
if(y == 0 && x <= 0) continue;
auto zero = euclid3::canonicalize(to_coord({x, y}));
auto zero = euclid3::canonicalize(to_coord(gp::loc{x, y}));
if(zero == euclid3::euzero)
torus_zeros.emplace_back(x, y);
}