mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 12:01:05 +00:00
Fix recordscore not including intermission bonuses
This commit is contained in:
parent
42bf107b71
commit
91e915b963
1 changed files with 7 additions and 0 deletions
|
@ -2065,6 +2065,9 @@ static void Y_AwardCoopBonuses(void)
|
|||
players[i].score += localbonuses[j].points;
|
||||
if (players[i].score > MAXSCORE)
|
||||
players[i].score = MAXSCORE;
|
||||
players[i].recordscore += localbonuses[j].points;
|
||||
if (players[i].recordscore > MAXSCORE)
|
||||
players[i].recordscore = MAXSCORE;
|
||||
}
|
||||
|
||||
ptlives = min(
|
||||
|
@ -2121,6 +2124,10 @@ static void Y_AwardSpecialStageBonus(void)
|
|||
players[i].score += localbonuses[1].points;
|
||||
if (players[i].score > MAXSCORE)
|
||||
players[i].score = MAXSCORE;
|
||||
players[i].recordscore += localbonuses[0].points;
|
||||
players[i].recordscore += localbonuses[1].points;
|
||||
if (players[i].recordscore > MAXSCORE)
|
||||
players[i].recordscore = MAXSCORE;
|
||||
|
||||
// grant extra lives right away since tally is faked
|
||||
ptlives = min(
|
||||
|
|
Loading…
Reference in a new issue