From 057b46010f1ed6a7d56a5ec8efc4da4279160f0f Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sun, 22 Mar 2026 15:06:25 -0400 Subject: [PATCH] Disable EFX debug --- src/p_enemy.c | 2 +- src/s_sound.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/p_enemy.c b/src/p_enemy.c index ec9b66e64..20e67a3a3 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -3234,7 +3234,7 @@ void A_AttractChase(void *thing) actor->target->player->ringboost += K_GetKartRingPower(actor->target->player, true); actor->target->player->ringtime += K_GetKartRingPower(actor->target->player, true); -#define EFXTEST +//#define EFXTEST #ifdef EFXTEST efx_t efx; S_InitEFXArray(&efx); diff --git a/src/s_sound.c b/src/s_sound.c index 3032350b3..26bfbb58a 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -895,11 +895,13 @@ notinlevel: if (!I_SoundIsPlaying(c->handle)) { c->endtime += 1; + if (c->efx == NULL || c->endtime > c->efxtail + c->duration) { - CONS_Printf("endtime: %f efxtail: %f duration: %f \n", c->endtime, c->efxtail, c->duration); + //CONS_Printf("endtime: %f efxtail: %f duration: %f \n", c->endtime, c->efxtail, c->duration); S_StopChannel(cnum); } + continue; } else