dhewm3/neo
Daniel Gibson cc5f1d9fd2 Fix issues in first map of the "UAC Franchise 666" user campaign, #651
somehow the collision code managed to spread NaNs on Win32, which caused
a horrible framerate, "GetPointOutsideObstacles: no valid point found"
warnings in the console and assertions in debug builds.
Didn't happen in Vanilla Doom3 though.

At the location I changed the code in, I saw the following values in the
debugger:
normal: {x=0.00610326231 y=5.58793545e-09 z=1.19209290e-07 }
trmEdge->start: {x=-1358.00000 y=913.948975 z=25.2637405 }
start: {x=-1358.00000 y=916.000000 z=34.0000000 }
end:   {x=-1358.00000 y=810.000000 z=34.0000000 }
dist (normal*trmEdge->start): -8.28822231
d1: 9.53674316e-07
d2: 9.53674316e-07
f1 (d1/(d1-d2)): inf

"normal" isn't normalized and also very small (in all directions),
"start" and "end" have quite different y values, but still doing scalar
multiplications of each with "normal" gave the same result..
No idea what this all means exactly, but checking if d1 - d2 is (almost)
0 to prevent INF solved the problems. In the end it will be some tiny
differences in floating point calculations between different platforms
and compilers..
In my test d1-d2 was exactly 0, but I compare with FLT_EPSILON to be
on the safer side.
2025-02-04 18:50:42 +01:00
..
cm Fix issues in first map of the "UAC Franchise 666" user campaign, #651 2025-02-04 18:50:42 +01:00
d3xp Changes from CstDoom3 for anchored GUIs, #324 2025-01-21 03:04:18 +01:00
framework Bump SAVEGAME_VERSION to 18 for the CstDoom3 GUI changes 2025-01-21 03:04:18 +01:00
game Changes from CstDoom3 for anchored GUIs, #324 2025-01-21 03:04:18 +01:00
idlib Implement Mem_MallocA()+Mem_FreeA(): alloca() but might use Heap 2024-11-07 06:25:51 +01:00
libs/imgui Update Dear ImGui to 1.91.7 2025-01-29 18:16:28 +01:00
MayaImport s/LittleLong/LittleInt/ to match the return type 2012-06-28 13:02:47 +02:00
renderer Support nospecular and allow_nospecular in demos 2025-01-21 00:51:38 +01:00
sound Fix running timedemo if sound is disabled (s_noSound 1), fix #163 2025-01-19 02:05:50 +01:00
sys Fix ImGui assertion when starting into DOOMEdit (+editor) 2025-01-21 00:51:38 +01:00
tools Set tr.allowNoSpecular in DOOMEdit 2025-01-21 00:51:38 +01:00
TypeInfo Get rid of Sys_FPU_StackIsEmpty() 2012-07-06 01:06:53 +02:00
ui Make cst_hudAdjustAspect default to 1 2025-01-21 03:06:41 +01:00
CMakeLists.txt ImGui integration: Make sure scalingfactor is > 0, don't use X11 directly 2024-11-30 20:29:02 +01:00
config.h.in Introduce CMAKE_INSTALL_PREFIX relative paths 2012-07-04 02:18:42 +02:00
mmakefile.src # move the AROS specific folder icon and default.cfg mmakefile.src under neo/sys/aros/setup 2017-04-22 16:21:14 +02:00