Run old function ceiling and floor move regardless when in binary

This commit is contained in:
NepDisk 2024-09-12 01:38:50 -04:00
parent 5733b3b14b
commit e2e81d1c27
3 changed files with 20 additions and 3 deletions

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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;
}