1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

rogueviz:: use adj just in case

This commit is contained in:
Zeno Rogue 2021-03-31 00:36:08 +02:00
parent 9a33c3b572
commit 05d6706d2c

View File

@ -552,8 +552,11 @@ map<pair<cell*, cell*>, transmatrix> relmatrices;
transmatrix& memo_relative_matrix(cell *c1, cell *c2) {
auto& p = relmatrices[make_pair(c1, c2)];
if(p[2][2] == 0)
if(p[2][2] == 0) {
forCellIdEx(c3, i, c2) if(c3 == c1)
return p = currentmap->adj(c2, i);
p = calc_relative_matrix(c1, c2, C0);
}
return p;
}