Skip to content

Duke3D: Fix faulty call to getzrange() in player jump code

Dino Bollinger requested to merge dibollinger/eduke32:jumpcheck_fix into master

This call to getzrange() assigned the same dummy pointer to both ceilhit and florhit. This means that whenever the value stored in florhit would be altered, so would ceilhit and vice versa, and since the getzrange() function itself uses these parameters to compute the proper ceiling/floor z value in TROR areas, this could lead to unexpected behavior.

This fixes #45 (closed).

Merge request reports