From 17e2ce9042401bbc04baf6fd2e02b4c752c0ea1f Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 22 Sep 2024 19:38:51 +0200 Subject: [PATCH] console/cmd: tidy explosion sounds --- include/libtrx/game/sound/ids.h | 7 ++++--- src/game/console/cmd/die.c | 2 -- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/libtrx/game/sound/ids.h b/include/libtrx/game/sound/ids.h index f07353d..bd58360 100644 --- a/include/libtrx/game/sound/ids.h +++ b/include/libtrx/game/sound/ids.h @@ -201,7 +201,7 @@ typedef enum SOUND_EFFECT_ID { SFX_PIERRE_SPEECH = 203, SFX_SKATEKID_SPEECH = 204, SFX_LARA_SETUP = 205, - SFX_EXPLOSION_CHEAT = 206, + SFX_EXPLOSION_CHEAT = SFX_ATLANTEAN_EXPLODE, // clang-format on } SOUND_EFFECT_ID; @@ -310,7 +310,7 @@ typedef enum { SFX_TIGER_DEATH = 102, SFX_TIGER_GROWL = 103, SFX_M16_STOP = 104, - SFX_EXPLOSION1 = 105, + SFX_EXPLOSION_1 = 105, SFX_GROWL = 106, SFX_SPIDER_JUMP = 107, SFX_MENU_ROTATE = 108, @@ -538,9 +538,10 @@ typedef enum { SFX_SPIDER_EXPLODE = 349, SFX_SHARK_BITE = 350, SFX_LAVA_BUBBLES = 351, - SFX_EXPLOSION2 = 352, + SFX_EXPLOSION_2 = 352, SFX_BURGLARS = 353, SFX_ZIPPER = 354, + SFX_EXPLOSION_CHEAT = SFX_EXPLOSION_1, SFX_NUMBER_OF = 370, } SOUND_EFFECT_ID; // clang-format on diff --git a/src/game/console/cmd/die.c b/src/game/console/cmd/die.c index 1efcaef..3396b24 100644 --- a/src/game/console/cmd/die.c +++ b/src/game/console/cmd/die.c @@ -22,9 +22,7 @@ static COMMAND_RESULT M_Entrypoint(const char *const args) } Sound_Effect(SFX_LARA_FALL, &lara_item->pos, SPM_NORMAL); -#if TR_VERSION == 1 Sound_Effect(SFX_EXPLOSION_CHEAT, &lara_item->pos, SPM_NORMAL); -#endif Effect_ExplodingDeath(lara->item_num, -1, 1); lara_item->hit_points = 0;