mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-23 03:12:38 +00:00
Conveyor belts: Only apply flipspecial if it's a 3D floor
This commit is contained in:
parent
2afea367cb
commit
979bc471ba
1 changed files with 7 additions and 4 deletions
11
src/p_spec.c
11
src/p_spec.c
|
@ -7514,10 +7514,13 @@ static void Add_Scroller(INT32 type, fixed_t dx, fixed_t dy, INT32 control, INT3
|
|||
if (type == sc_carry || type == sc_carry_ceiling)
|
||||
{
|
||||
sectors[affectee].specialflags |= SSF_CONVEYOR;
|
||||
if ((type == sc_carry_ceiling) ^ is3dblock)
|
||||
sectors[affectee].flags |= MSF_FLIPSPECIAL_CEILING;
|
||||
else
|
||||
sectors[affectee].flags |= MSF_FLIPSPECIAL_FLOOR;
|
||||
if (is3dblock)
|
||||
{
|
||||
if (type == sc_carry)
|
||||
sectors[affectee].flags |= MSF_FLIPSPECIAL_CEILING;
|
||||
else
|
||||
sectors[affectee].flags |= MSF_FLIPSPECIAL_FLOOR;
|
||||
}
|
||||
}
|
||||
P_AddThinker(THINK_MAIN, &s->thinker);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue