rogueviz: std::isnan to prevent errors on some compilers

This commit is contained in:
Zeno Rogue 2018-09-03 22:35:32 +02:00
parent b3c9aa69a3
commit 491183c375
1 changed files with 2 additions and 2 deletions

View File

@ -241,8 +241,8 @@ void create_model() {
testplane[2] = tester * tria[(i+1)%5];
hyperpoint f = facingdir(testplane);
// printf("%lf ", f[0]);
if(f[0] > -1e-6 || isnan(f[0])) good1++;
if(f[0] < +1e-6 || isnan(f[0])) good2++;
if(f[0] > -1e-6 || std::isnan(f[0])) good1++;
if(f[0] < +1e-6 || std::isnan(f[0])) good2++;
}
// printf("\n");
if(good1 == 5 || good2 == 5) {ctr = h; break; }