mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-13 22:56:28 +00:00
MT_EMBLEM: Rework grabbable conditions, so you pass through collected ones in both offline and online for consistency
This commit is contained in:
parent
d19e98beb8
commit
3036eaf35d
1 changed files with 10 additions and 14 deletions
|
|
@ -596,26 +596,22 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
|||
// Secret emblem thingy
|
||||
case MT_EMBLEM:
|
||||
{
|
||||
boolean gotcollected = false;
|
||||
|
||||
if (!P_CanPickupEmblem(player, special->health - 1))
|
||||
return;
|
||||
|
||||
if (P_IsLocalPlayer(player) && !gamedata->collected[special->health-1])
|
||||
if (P_IsLocalPlayer(player))
|
||||
{
|
||||
gamedata->collected[special->health-1] = gotcollected = true;
|
||||
if (!M_UpdateUnlockablesAndExtraEmblems(true, true))
|
||||
S_StartSound(NULL, sfx_ncitem);
|
||||
gamedata->deferredsave = true;
|
||||
if (!gamedata->collected[special->health-1])
|
||||
{
|
||||
gamedata->collected[special->health-1] = true;
|
||||
if (!M_UpdateUnlockablesAndExtraEmblems(true, true))
|
||||
S_StartSound(NULL, sfx_ncitem);
|
||||
gamedata->deferredsave = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (netgame)
|
||||
{
|
||||
// Don't delete the object in netgames, just fade it.
|
||||
return;
|
||||
}
|
||||
|
||||
break;
|
||||
// Don't delete the object, just fade it.
|
||||
return;
|
||||
}
|
||||
|
||||
// CTF Flags
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue