Merge pull request #4 from WumboSpasm/fixchargesound

Fix engine charge sound during position. Thanks Wumbo!
This commit is contained in:
NepDisk 2024-08-16 15:48:37 -04:00 committed by GitHub
commit b0682002bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6034,9 +6034,9 @@ static void K_UpdateEngineSounds(player_t *player)
return;
}
if (player->dropdash) // Dropdashing
if ((leveltime >= starttime-(2*TICRATE) && leveltime <= starttime) || player->dropdash) // Startup boost and dropdashing
{
// Dropdashing
// Startup boosts only want to check for BT_ACCELERATE being pressed.
targetsnd = ((buttons & BT_ACCELERATE) ? 12 : 0);
}
else