mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-16 17:11:33 +00:00
Merge branch 'nobotbonus' into 'next'
Don't award end-of-level bonuses to Tailsbot See merge request STJr/SRB2!1676
This commit is contained in:
commit
31eb2a7e77
1 changed files with 2 additions and 2 deletions
|
@ -2023,7 +2023,7 @@ static void Y_AwardCoopBonuses(void)
|
|||
|
||||
for (i = 0; i < MAXPLAYERS; ++i)
|
||||
{
|
||||
if (!playeringame[i] || players[i].lives < 1) // not active or game over
|
||||
if (!playeringame[i] || players[i].lives < 1 || players[i].bot == BOT_2PAI || players[i].bot == BOT_2PHUMAN) // not active, game over or tails bot
|
||||
bonusnum = 0; // all null
|
||||
else
|
||||
bonusnum = mapheaderinfo[prevmap]->bonustype + 1; // -1 is none
|
||||
|
@ -2073,7 +2073,7 @@ static void Y_AwardSpecialStageBonus(void)
|
|||
{
|
||||
oldscore = players[i].score;
|
||||
|
||||
if (!playeringame[i] || players[i].lives < 1) // not active or game over
|
||||
if (!playeringame[i] || players[i].lives < 1 || players[i].bot == BOT_2PAI || players[i].bot == BOT_2PHUMAN) // not active, game over or tails bot
|
||||
{
|
||||
Y_SetNullBonus(&players[i], &localbonuses[0]);
|
||||
Y_SetNullBonus(&players[i], &localbonuses[1]);
|
||||
|
|
Loading…
Reference in a new issue