Build 2761
SVN-
General
Integer Overflow Offensive, First Act: rintersect, hitscan, neartag.
Show details
It's time to replace some int32s with 64-bit ints in core engine functions. The problem is that for example, the dot product is taken between vectors that may be the difference between two arbitrary points in a sector, so even if one sticks to the "no blue walls" rule, that doesn't guarantee freedom from overflows.
-
General
Fix a div by zero in polymost_internal_nonparallaxed.
-
fix a div by zero when drawing tile info for void tile in 3D mode.
Show details
This was exposed by Clang with -ftrapv, which apparently also traps those.
-
General
Lunatic translator: fix dangling else and add a test file, tweak warnings