diff --git a/src/objects/spb.c b/src/objects/spb.c index 4f056a45f..d34da47bb 100644 --- a/src/objects/spb.c +++ b/src/objects/spb.c @@ -154,7 +154,7 @@ static void SpawnSPBDust(mobj_t *spb) angle_t sa = spb->angle - ANG1*60; INT32 i; - if ((spb_intangible(spb) = SPB_FLASHING)) // If the SPB is intangible, don't spawn the "v" dust wave + if ((spb_intangible(spb) != SPB_FLASHING)) // If the SPB is intangible, don't spawn the "v" dust wave { if (spb->eflags & MFE_VERTICALFLIP) { @@ -205,7 +205,7 @@ static void SpawnSPBSliptide(mobj_t *spb, SINT8 dir) angle_t travelangle; fixed_t sz = spb->floorz; - if ((spb_intangible(spb) = SPB_FLASHING)) // Tired of this thing whacking people when switching targets, don't sliptide if intangible either + if ((spb_intangible(spb) != SPB_FLASHING)) // Tired of this thing whacking people when switching targets, don't sliptide if intangible either { if (spb->eflags & MFE_VERTICALFLIP) {