P_DamageMobj: reformat if-statement into switch-case

This commit is contained in:
James R 2023-11-27 04:47:32 -08:00
parent 548618a238
commit b773fb9b33

View file

@ -2842,10 +2842,14 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
return false; return false;
} }
if (target->type == MT_BALLSWITCH_BALL) switch (target->type)
{ {
case MT_BALLSWITCH_BALL:
Obj_BallSwitchDamaged(target, inflictor, source); Obj_BallSwitchDamaged(target, inflictor, source);
return false; return false;
default:
break;
} }
if (!force) if (!force)