mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-08 00:52:55 +00:00
Merge branch 'early-item-fix' into 'master'
Fix inconsistent early item behavior Closes #1533 See merge request kart-krew-dev/ring-racers-internal!2585
This commit is contained in:
commit
9009a5aef9
2 changed files with 17 additions and 9 deletions
11
src/g_game.c
11
src/g_game.c
|
|
@ -2352,8 +2352,6 @@ void G_PlayerReborn(INT32 player, boolean betweenmaps)
|
|||
bot = players[player].bot;
|
||||
botdifficulty = players[player].botvars.difficulty;
|
||||
|
||||
cangrabitems = players[player].cangrabitems;
|
||||
|
||||
botdiffincrease = players[player].botvars.diffincrease;
|
||||
botrival = players[player].botvars.rival;
|
||||
|
||||
|
|
@ -2439,13 +2437,6 @@ void G_PlayerReborn(INT32 player, boolean betweenmaps)
|
|||
tallyactive = false;
|
||||
|
||||
cangrabitems = 0;
|
||||
if (gametyperules & GTR_SPHERES
|
||||
|| gametyperules & GTR_CATCHER
|
||||
|| G_TimeAttackStart()
|
||||
|| gametype == GT_TUTORIAL
|
||||
|| !M_NotFreePlay()
|
||||
|| K_GetNumWaypoints() == 0)
|
||||
cangrabitems = EARLY_ITEM_FLICKER;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -2501,6 +2492,8 @@ void G_PlayerReborn(INT32 player, boolean betweenmaps)
|
|||
{
|
||||
tally = players[player].tally;
|
||||
}
|
||||
|
||||
cangrabitems = players[player].cangrabitems;
|
||||
}
|
||||
|
||||
spectatorReentry = (betweenmaps ? 0 : players[player].spectatorReentry);
|
||||
|
|
|
|||
15
src/k_kart.c
15
src/k_kart.c
|
|
@ -9781,6 +9781,21 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
|||
player->invincibilitytimer--;
|
||||
}
|
||||
|
||||
// The precise ordering of start-of-level made me want to cut my head off,
|
||||
// so let's try this instead. Whatever!
|
||||
if (leveltime <= introtime)
|
||||
{
|
||||
if ((gametyperules & GTR_SPHERES)
|
||||
|| (gametyperules & GTR_CATCHER)
|
||||
|| G_TimeAttackStart()
|
||||
|| (gametype == GT_TUTORIAL)
|
||||
|| !M_NotFreePlay()
|
||||
|| (K_GetNumWaypoints() == 0))
|
||||
player->cangrabitems = EARLY_ITEM_FLICKER;
|
||||
else
|
||||
player->cangrabitems = 0;
|
||||
}
|
||||
|
||||
if (player->cangrabitems && player->cangrabitems <= EARLY_ITEM_FLICKER)
|
||||
player->cangrabitems++;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue