Fix panels not doing stack sound

This commit is contained in:
NepDisk 2025-11-22 09:46:14 -05:00
parent 079598b195
commit 305703d320

View file

@ -4672,7 +4672,7 @@ static void K_SneakerPanelStackSound(player_t *player)
const sfxenum_t smallsfx = sfx_cdfm40;
sfxenum_t sfx = normalsfx;
if ((player->numsneakers > 0) && K_StackingActive() && cv_kartstacking_sneakerstacksound.value)
if (((player->numsneakers + player->numpanels) > 0) && K_StackingActive() && cv_kartstacking_sneakerstacksound.value)
{
// Use a less annoying sound when stacking sneakers.
sfx = smallsfx;