Files
dusklight/include
Max Roncace 7d3795f745 Detect and replace NaNs in cXyz default ctor
This fixes intermittent segfaults due to invalid atan table lookups.

For some reason zero-initializing all cXyz objects causes issues, as
does initializing them with INFINITY or -INFINITY. However, at least
one of the possible crashes (in d_a_e_yg's search_ground_1) is
guaranteed to happen whenever a specific uninitialized cXyz contains
a NaN for x or z.

A possible explanation for these crashes not occurring on hardware might
be that the problematic objects happen to be placed at memory locations
that happen to never contain a NaN upon allocation, so the buggy code
was never caught. Further investigation would be needed to determine if
this is what's actually happening, though.
2026-03-25 20:53:18 -04:00
..
2026-02-25 20:43:43 +01:00
2026-03-23 05:01:42 -07:00
2026-03-08 15:27:15 -07:00
2026-03-12 17:56:51 -07:00
2025-10-06 12:48:39 +03:00
2026-03-13 14:41:46 -07:00
2024-10-10 08:29:58 -06:00
2026-01-05 02:19:14 -08:00
2025-11-17 15:38:04 -08:00