ghost compat

This commit is contained in:
Ashnal 2025-09-15 20:52:41 -04:00
parent 46839fe669
commit 2832b6fb38
2 changed files with 13 additions and 5 deletions

View file

@ -180,9 +180,10 @@ demoghost *ghosts = NULL;
// - 0x000E (Ring Racers 2.4 staff ghosts part 1 - initial recordings)
// - 0x000F (Ring Racers 2.4 staff ghosts part 2 - dynslopes thinker fix)
// - 0x0010 (Ring Racers 2.4 staff ghosts part 3 - skinlimit raise. don't say we never did anythin for 'ya)
// - 0x0011 (Ring Racers 2.4 staff ghosts part 4 - acid dropdash)
#define MINDEMOVERSION 0x000E
#define DEMOVERSION 0x0010
#define DEMOVERSION 0x0011
boolean G_CompatLevel(UINT16 level)
{

View file

@ -10012,11 +10012,18 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
if (onground && player->transfer)
{
if (player->fastfall) // If you elected to supertransfer, you get a small dropdash boost on land
if (G_CompatLevel(0x0010))
{
S_StartSound(player->mo, sfx_s23c);
player->aciddropdashboost = max(player->aciddropdashboost, 35);
K_SpawnDashDustRelease(player);
// Ghosts prior to 2.4 RC2 don't get this
}
else
{
if (player->fastfall) // If you elected to acid drop, you get a small dropdash boost on landing
{
S_StartSound(player->mo, sfx_s23c);
player->aciddropdashboost = max(player->aciddropdashboost, 35);
K_SpawnDashDustRelease(player);
}
}
player->fastfall = 0;
player->transfer = 0;