mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-20 18:01:16 +00:00
Add_Scroller: Don't call IsSector3DBlock if affectee is a side
This commit is contained in:
parent
2e9260c83c
commit
a5a7b20d95
1 changed files with 1 additions and 2 deletions
|
@ -7500,7 +7500,6 @@ static boolean IsSector3DBlock(sector_t* sec)
|
|||
*/
|
||||
static void Add_Scroller(INT32 type, fixed_t dx, fixed_t dy, INT32 control, INT32 affectee, INT32 accel, INT32 exclusive)
|
||||
{
|
||||
boolean is3dblock = IsSector3DBlock(§ors[affectee]);
|
||||
scroll_t *s = Z_Calloc(sizeof *s, PU_LEVSPEC, NULL);
|
||||
s->thinker.function.acp1 = (actionf_p1)T_Scroll;
|
||||
s->type = type;
|
||||
|
@ -7516,7 +7515,7 @@ 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 (is3dblock)
|
||||
if (IsSector3DBlock(§ors[affectee]))
|
||||
{
|
||||
if (type == sc_carry)
|
||||
sectors[affectee].flags |= MSF_FLIPSPECIAL_CEILING;
|
||||
|
|
Loading…
Reference in a new issue