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:
parent
afe4d58cbb
commit
a282c767ed
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user