OpenTrespasser/JurassicParkTrespasser

AI - Potential pathfinding bug after resolving illegal memory access

Opened this issue · 1 comments

Illegal memory writes in the A* path search corrupted memory and caused crashes in completely unrelated code sections when the player died and restarted the level.

The illegal memory writes were resolved with a quickfix: the search is not performed when an illegal memory write is likely to occur. This change may have had significant impact on the dino behavior. To me, they seem less reactive to the player, and standing still more often.

It should be investigated as to whether this change had any real impact and what can be done to restore the old behavior without bringing back the crashes.

The quickfix is included in commit #57f937c from PR #78.
It is possible that the presumed dino behavior problems were caused by the now resolved problem from issue #20.