1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-17 10:44:48 +00:00

embeddings:: fixed a typo in emb_same_in_same::actual_to_base

This commit is contained in:
Zeno Rogue 2023-05-01 15:50:06 +02:00
parent 043fc38dc6
commit cca6b1b721

View File

@ -519,7 +519,7 @@ struct emb_same_in_same : emb_actual {
transmatrix actual_to_base(const transmatrix &T0) override {
auto T = T0;
for(int i=0; i<4; i++) T[i][2] = T[i][3], T[i][3] = 0;
for(int i=0; i<4; i++) T[2][i] = T[3][i], T[i][3] = 0;
for(int i=0; i<4; i++) T[2][i] = T[3][i], T[3][i] = 0;
T[3][3] = 1;
fixmatrix(T);
for(int i=0; i<MDIM; i++) for(int j=0; j<MDIM; j++) if(isnan(T[i][j])) return Id;