Some additions/fixes for air bobbing FOFs

This commit is contained in:
MascaraSnake 2020-04-27 10:58:38 +02:00
parent 607aeb3a52
commit f6b67d8253

View file

@ -2937,12 +2937,21 @@ static void P_ConvertBinaryMap(void)
case 153: //FOF: Dynamically sinking platform case 153: //FOF: Dynamically sinking platform
lines[i].args[0] = lines[i].tag; lines[i].args[0] = lines[i].tag;
lines[i].args[1] = (lines[i].special == 150) ? 16*FRACUNIT : P_AproxDistance(lines[i].dx, lines[i].dy); lines[i].args[1] = (lines[i].special == 150) ? 16*FRACUNIT : P_AproxDistance(lines[i].dx, lines[i].dy);
//Flags
if (lines[i].special == 152) if (lines[i].special == 152)
lines[i].args[2] |= TMFB_REVERSE; lines[i].args[2] |= TMFB_REVERSE;
if (lines[i].flags & ML_NOCLIMB) if (lines[i].flags & ML_NOCLIMB)
lines[i].args[2] |= TMFB_SPINDASH; lines[i].args[2] |= TMFB_SPINDASH;
if (lines[i].special == 153) if (lines[i].special == 153)
lines[i].args[3] |= TMFB_DYNAMIC; lines[i].args[2] |= TMFB_DYNAMIC;
//Tangibility
if (lines[i].flags & ML_EFFECT1)
lines[i].args[3] |= TMFT_DONTBLOCKOTHERS;
if (lines[i].flags & ML_EFFECT2)
lines[i].args[3] |= TMFT_DONTBLOCKPLAYER;
lines[i].special = 150; lines[i].special = 150;
break; break;
case 170: //FOF: Crumbling, respawn case 170: //FOF: Crumbling, respawn