Bustable blocks: Forgot to adapt linedef executor triggering for pushables

This commit is contained in:
MascaraSnake 2020-05-02 14:51:03 +02:00
parent 4dd25721f6
commit 21eccc15d8

View file

@ -1732,8 +1732,8 @@ static void P_PushableCheckBustables(mobj_t *mo)
EV_CrumbleChain(NULL, rover); // node->m_sector EV_CrumbleChain(NULL, rover); // node->m_sector
// Run a linedef executor?? // Run a linedef executor??
if (rover->master->flags & ML_EFFECT5) if (rover->master->args[3] & TMFB_EXECUTOR)
P_LinedefExecute((INT16)(P_AproxDistance(rover->master->dx, rover->master->dy)>>FRACBITS), mo, node->m_sector); P_LinedefExecute((INT16)(rover->master->args[4]), mo, node->m_sector);
goto bustupdone; goto bustupdone;
} }