------------------------------------------------------------------------ r2761 | helixhorned | 2012-06-13 16:13:39 -0700 (Wed, 13 Jun 2012) | 7 lines Integer Overflow Offensive, First Act: rintersect, hitscan, neartag. 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. ------------------------------------------------------------------------ r2760 | helixhorned | 2012-06-13 16:13:36 -0700 (Wed, 13 Jun 2012) | 1 line Polymost: don't attempt to draw sprite with void tile, preventing div-by-0s later ------------------------------------------------------------------------ r2759 | helixhorned | 2012-06-13 16:13:34 -0700 (Wed, 13 Jun 2012) | 1 line Mapster32: draw a wall blue if its squared length exceeds INT_MAX (not UINT_MAX) ------------------------------------------------------------------------ r2758 | helixhorned | 2012-06-13 16:13:31 -0700 (Wed, 13 Jun 2012) | 1 line Fix a div by zero in polymost_internal_nonparallaxed. ------------------------------------------------------------------------ r2757 | helixhorned | 2012-06-13 16:13:28 -0700 (Wed, 13 Jun 2012) | 3 lines Mapster32: fix a div by zero when drawing tile info for void tile in 3D mode. This was exposed by Clang with -ftrapv, which apparently also traps those. ------------------------------------------------------------------------ r2756 | helixhorned | 2012-06-13 16:13:26 -0700 (Wed, 13 Jun 2012) | 1 line Lunatic translator: fix dangling else and add a test file, tweak warnings ------------------------------------------------------------------------ r2755 | helixhorned | 2012-06-13 16:13:23 -0700 (Wed, 13 Jun 2012) | 4 lines build/Makefile: Always compile a-c.o with -O2 and without -fcatch-undefined-behavior This is to not slow down the core drawing functions too much in debugging builds and mimics the way things are on x86. ------------------------------------------------------------------------ r2754 | helixhorned | 2012-06-13 16:13:20 -0700 (Wed, 13 Jun 2012) | 1 line a.m32: new state "collect_ceilsky_sectors" collecting parallaxed ceilings. ------------------------------------------------------------------------ r2753 | helixhorned | 2012-06-13 16:13:15 -0700 (Wed, 13 Jun 2012) | 1 line Mapster32: disallow joining non-adjacent sectors when expert mode is disabled. ------------------------------------------------------------------------