mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
P_TouchSpecialThing: MT_RANDOMITEM: fix -Wpedantic
This commit is contained in:
parent
6ccaae4a0c
commit
b84b20510f
1 changed files with 2 additions and 1 deletions
|
|
@ -388,7 +388,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
|||
|
||||
special->flags &= ~MF_SPECIAL;
|
||||
return;
|
||||
case MT_RANDOMITEM:
|
||||
case MT_RANDOMITEM: {
|
||||
UINT8 cheesetype = (special->flags2 & MF2_AMBUSH) ? 2 : 1;
|
||||
|
||||
if (!P_CanPickupItem(player, 1))
|
||||
|
|
@ -407,6 +407,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
|||
P_ItemPop(special);
|
||||
special->fuse = TICRATE;
|
||||
return;
|
||||
}
|
||||
case MT_SPHEREBOX:
|
||||
if (!P_CanPickupItem(player, 0))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue