1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-03-13 23:18:16 +00:00

fixed invalid_matrix in affine

This commit is contained in:
Zeno Rogue 2020-05-15 22:53:52 +02:00
parent afe4d58cbb
commit a282c767ed

View File

@ -1044,7 +1044,7 @@ EX bool invalid_matrix(const transmatrix T) {
for(int i=0; i<GDIM; i++) for(int j=0; j<GDIM; j++)
if(std::isnan(T[i][j]) || T[i][j] > 1e8 || T[i][j] < -1e8 || std::isinf(T[i][j]))
return true;
if(prod) {
if(prod || (cgflags & qAFFINE)) {
for(int i=0; i<GDIM; i++) for(int j=0; j<GDIM; j++) if(abs(T[i][j]) > 1e-60) return false;
}
else