More tripwire leniency after invinc + fixed regression in rocketsneaker boost type separation

What it says on the tin.

Shoutouts to Ashnal for figuring out the regression before anyone got hit by it!
This commit is contained in:
eebrozgi 2025-06-03 01:58:12 +03:00
parent 03d9430bb9
commit 7157d80d00
2 changed files with 6 additions and 0 deletions

View file

@ -9816,6 +9816,11 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
player->invincibilitytimer--;
if (player->invincibilitytimer && K_IsPlayerScamming(player))
player->invincibilitytimer--;
// Extra tripwire leniency for the end of invincibility
if (player->invincibilitytimer <= 0) {
player->tripwireLeniency = max( player->tripwireLeniency, TICRATE );
}
}
// The precise ordering of start-of-level made me want to cut my head off,

View file

@ -1198,6 +1198,7 @@ static void P_NetUnArchivePlayers(savebuffer_t *save)
players[i].numsneakers = READUINT8(save->p);
players[i].panelsneakertimer = READUINT16(save->p);
players[i].numpanelsneakers = READUINT8(save->p);
players[i].weaksneakertimer = READUINT16(save->p);
players[i].numweaksneakers = READUINT8(save->p);
players[i].floorboost = READUINT8(save->p);