mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
rogueviz: std::isnan to prevent errors on some compilers
This commit is contained in:
parent
b3c9aa69a3
commit
491183c375
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user