Skip to content

(UDMF prereq.) Spawn Z refactor

Nev3r requested to merge spawn_z_refactor into next

Refactors the object spawn z coordinate calculation code into a separate function, save for the rings and hoops. The code now only makes use of mapthing_t.options in P_PrepareRawThings() in order to obtain mapthing_t.z, which will be used from then onwards instead.

This change might break Lua scripts which make use of the mapthing.z, though it shouldn't be a problem given it was inconsistent prior to this merge.

Also, ring-like objects such as emerald tokens or emblem no longer ignore the MF_SPAWNCEILING flag. Not that any of them have it anyway.

Edited by MascaraSnake

Merge request reports

Loading