mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
P_DamageMobj: reformat if-statement into switch-case
This commit is contained in:
parent
548618a238
commit
b773fb9b33
1 changed files with 7 additions and 3 deletions
|
|
@ -2842,10 +2842,14 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
|
|||
return false;
|
||||
}
|
||||
|
||||
if (target->type == MT_BALLSWITCH_BALL)
|
||||
switch (target->type)
|
||||
{
|
||||
case MT_BALLSWITCH_BALL:
|
||||
Obj_BallSwitchDamaged(target, inflictor, source);
|
||||
return false;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (!force)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue