1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-15 13:17:13 +00:00

nilv:: works with small periods

This commit is contained in:
Zeno Rogue
2019-11-08 15:42:31 +01:00
parent f7fc9d7d5d
commit 6dd47c903d
4 changed files with 15 additions and 8 deletions

View File

@@ -259,8 +259,11 @@ void virtualRebase_cell(cell*& base, T& at, const U& check) {
T best_at = at;
while(true) {
cell *newbase = NULL;
forCellCM(c2, base) {
transmatrix V2 = calc_relative_matrix(base, c2, C0);
forCellIdCM(c2, i, base) {
transmatrix V2 =
nil ? nilv::adjmatrix(base->c.spin(i)) :
asonov::in() ? asonov::adjmatrix(base->c.spin(i)) :
calc_relative_matrix(base, c2, C0);
T cand_at = V2 * at;
horo_distance newz(check(cand_at));
if(newz < currz) {