mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Defer owner->xtralife sound/animation not covered by Ring Total until Bonuses have been evaluated
Makes more sense for Prison Break, accomodates weird combinatorial custom gametypes
This commit is contained in:
parent
c50edc684c
commit
9cbaaa2f11
1 changed files with 18 additions and 16 deletions
|
|
@ -658,21 +658,6 @@ boolean level_tally_t::IncrementLine(void)
|
||||||
if (*value == dest)
|
if (*value == dest)
|
||||||
{
|
{
|
||||||
// We've reached our destination
|
// We've reached our destination
|
||||||
|
|
||||||
if (lives_check == true)
|
|
||||||
{
|
|
||||||
// This is only true if Rings alone aren't responsible for our added lives.
|
|
||||||
// Generally for Prison Break, but could be earned in custom contexts too.
|
|
||||||
livesAdded = owner->xtralife;
|
|
||||||
xtraBlink = TICRATE;
|
|
||||||
|
|
||||||
if (playSounds == true)
|
|
||||||
{
|
|
||||||
S_StopSoundByNum(sfx_cdfm73);
|
|
||||||
S_StartSound(NULL, sfx_cdfm73);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -796,7 +781,24 @@ void level_tally_t::Tick(void)
|
||||||
{
|
{
|
||||||
if (IncrementLine() == true)
|
if (IncrementLine() == true)
|
||||||
{
|
{
|
||||||
if (playSounds)
|
if (grandprixinfo.gp == true // In GP
|
||||||
|
&& lines >= lineCount // Finished the bonuses
|
||||||
|
&& livesAdded < owner->xtralife // Didn't max out by other causes
|
||||||
|
)
|
||||||
|
{
|
||||||
|
// This is only true if Rings alone aren't responsible for our added lives.
|
||||||
|
// Generally for Prison Break, but could be earned in custom contexts too.
|
||||||
|
livesAdded = owner->xtralife;
|
||||||
|
xtraBlink = TICRATE;
|
||||||
|
|
||||||
|
if (playSounds == true)
|
||||||
|
{
|
||||||
|
S_StopSoundByNum(sfx_cdfm73);
|
||||||
|
S_StartSound(NULL, sfx_cdfm73);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (playSounds == true)
|
||||||
{
|
{
|
||||||
S_StopSoundByNum(sfx_mbs5b);
|
S_StopSoundByNum(sfx_mbs5b);
|
||||||
S_StartSound(NULL, (lines >= lineCount) ? sfx_mbs70 : sfx_mbs5b);
|
S_StartSound(NULL, (lines >= lineCount) ? sfx_mbs70 : sfx_mbs5b);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue