Skip to content

Engine: Fix updatesectorz() not checking z height in fallback, and add fallback optimization to updatesectorexclude()

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

updatesector_tryremaining() was used in updatesectorz(), which caused a range of bugs, such as being transported into the wrong overlapping sector, as well as the following instant death case:

https://cdn.discordapp.com/attachments/461290354726010891/906505616397307904/2021-11-06_12-01-45.mp4

This is because it used include_p() instead of include_z_p(). This commit also adds the fallback optimization to the function updatesectorexclude().

Merge request reports