Skip to content

Engine/Duke3D: Several changes to TROR traversal in clipping functions

Dino Bollinger requested to merge dibollinger/eduke32:tror_limits into master
  • clipmove() - No longer traverses sectors once a distance limit is exceeded, and at most traverses 64 TROR sectors at once.
  • hitscan() - TROR sectors added to clipsectlist after regular next sectors. Only adds TROR sectors in a single direction, and at most 64 at once.
  • A_RadiusDamage - only add TROR sectors if inside damage radius. Also increase MAXDAMAGESECTORS to 512, same as MAXCLIPSECTORS.

Fixes glitches and error spam in maps that make heavy use of TROR.

Merge request reports