mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Linedef type 460: ACTUALLY don't push your rings below baseline
This commit is contained in:
parent
ba7307b425
commit
c404e704c2
1 changed files with 5 additions and 2 deletions
|
|
@ -4199,10 +4199,13 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Don't push you below baseline
|
// Don't push you below baseline
|
||||||
if (mo->player->rings < 0)
|
if (mo->player->rings <= 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
mo->player->rings--;
|
if (rings > mo->player->rings)
|
||||||
|
rings = mo->player->rings;
|
||||||
|
|
||||||
|
mo->player->rings -= rings;
|
||||||
S_StartSound(mo, sfx_antiri);
|
S_StartSound(mo, sfx_antiri);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue