From e2e81d1c27dcedff6b89008f0fc0e8f56cf80ccc Mon Sep 17 00:00:00 2001 From: NepDisk <16447892+NepDisk@users.noreply.github.com> Date: Thu, 12 Sep 2024 01:38:50 -0400 Subject: [PATCH] Run old function ceiling and floor move regardless when in binary --- src/p_ceilng.c | 10 ++++++++++ src/p_floor.c | 7 +++++++ src/p_spec.c | 6 +++--- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/p_ceilng.c b/src/p_ceilng.c index d2d9d7d4a..cef08b5ee 100644 --- a/src/p_ceilng.c +++ b/src/p_ceilng.c @@ -243,6 +243,11 @@ INT32 EV_DoCeiling(mtag_t tag, line_t *line, ceiling_e type) { // This function is deprecated. // Use any of the following functions directly, instead. + + if (!udmf) + { + return EV_DoCeilingOLD(tag,line,type); + } switch (type) { @@ -739,6 +744,11 @@ INT32 EV_DoCrush(mtag_t tag, line_t *line, ceiling_e type) // Use any of the following functions directly, instead. fixed_t speed = line->args[2] << (FRACBITS - 2); + + if (!udmf) + { + return EV_DoCrushOLD(tag,line,type); + } switch (type) { diff --git a/src/p_floor.c b/src/p_floor.c index 8d2d0b1f6..107f83cd8 100644 --- a/src/p_floor.c +++ b/src/p_floor.c @@ -1596,6 +1596,13 @@ void EV_DoFloor(mtag_t tag, line_t *line, floor_e floortype) { // This function is deprecated. // Use any of the following functions directly, instead. + + if (!udmf) + { + EV_DoFloorOLD(tag, line, floortype); + return; + } + switch (floortype) { diff --git a/src/p_spec.c b/src/p_spec.c index 6c6ebef89..da1880e6f 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -3007,11 +3007,11 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha else { if (args[1] == TMP_FLOOR) - EV_DoFloorOLD(args[0], line, crushFloorOnce); + EV_DoFloor(args[0], line, crushFloorOnce); else if (args[1] == TMP_CEILING) - EV_DoCrushOLD(args[0], line, crushCeilOnce); + EV_DoCrush(args[0], line, crushCeilOnce); else - EV_DoCrushOLD(args[0], line, crushBothOnce); + EV_DoCrush(args[0], line, crushBothOnce); break; }