mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Have just one NiGHTS bonus option: NIGHTS and LINK together
This commit is contained in:
parent
8d40d8ea43
commit
8ec0865170
2 changed files with 2 additions and 16 deletions
|
|
@ -1197,10 +1197,8 @@ static void readlevelheader(MYFILE *f, INT32 num)
|
||||||
else if (fastcmp(word2, "BOSS")) i = 1;
|
else if (fastcmp(word2, "BOSS")) i = 1;
|
||||||
else if (fastcmp(word2, "ERZ3")) i = 2;
|
else if (fastcmp(word2, "ERZ3")) i = 2;
|
||||||
else if (fastcmp(word2, "NIGHTS")) i = 3;
|
else if (fastcmp(word2, "NIGHTS")) i = 3;
|
||||||
else if (fastcmp(word2, "NIGHTSLINK")) i = 4;
|
|
||||||
else if (fastcmp(word2, "NIGHTSALL")) i = 5;
|
|
||||||
|
|
||||||
if (i >= -1 && i <= 5) // -1 for no bonus. Max is 2.
|
if (i >= -1 && i <= 3) // -1 for no bonus. Max is 3.
|
||||||
mapheaderinfo[num-1]->bonustype = (SINT8)i;
|
mapheaderinfo[num-1]->bonustype = (SINT8)i;
|
||||||
else
|
else
|
||||||
deh_warning("Level header %d: invalid bonus type number %d", num, i);
|
deh_warning("Level header %d: invalid bonus type number %d", num, i);
|
||||||
|
|
|
||||||
|
|
@ -1825,7 +1825,7 @@ static void Y_SetPerfectBonus(player_t *player, y_bonus_t *bstruct)
|
||||||
|
|
||||||
// This list can be extended in the future with SOC/Lua, perhaps.
|
// This list can be extended in the future with SOC/Lua, perhaps.
|
||||||
typedef void (*bonus_f)(player_t *, y_bonus_t *);
|
typedef void (*bonus_f)(player_t *, y_bonus_t *);
|
||||||
bonus_f bonuses_list[7][4] = {
|
bonus_f bonuses_list[5][4] = {
|
||||||
{
|
{
|
||||||
Y_SetNullBonus,
|
Y_SetNullBonus,
|
||||||
Y_SetNullBonus,
|
Y_SetNullBonus,
|
||||||
|
|
@ -1850,18 +1850,6 @@ bonus_f bonuses_list[7][4] = {
|
||||||
Y_SetRingBonus,
|
Y_SetRingBonus,
|
||||||
Y_SetPerfectBonus,
|
Y_SetPerfectBonus,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Y_SetNullBonus,
|
|
||||||
Y_SetNullBonus,
|
|
||||||
Y_SetNightsBonus,
|
|
||||||
Y_SetNullBonus,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Y_SetNullBonus,
|
|
||||||
Y_SetNullBonus,
|
|
||||||
Y_SetLinkBonus,
|
|
||||||
Y_SetNullBonus,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Y_SetNullBonus,
|
Y_SetNullBonus,
|
||||||
Y_SetNightsBonus,
|
Y_SetNightsBonus,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue