mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +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
|
||||
{
|
||||
// Don't push you below baseline
|
||||
if (mo->player->rings < 0)
|
||||
if (mo->player->rings <= 0)
|
||||
return false;
|
||||
|
||||
mo->player->rings--;
|
||||
if (rings > mo->player->rings)
|
||||
rings = mo->player->rings;
|
||||
|
||||
mo->player->rings -= rings;
|
||||
S_StartSound(mo, sfx_antiri);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue