From 303df77b68110cf3653f4379315d0c0b4781a012 Mon Sep 17 00:00:00 2001 From: toaster Date: Sun, 17 Oct 2021 21:52:37 +0100 Subject: [PATCH] Unassigned variable fix (probably going to rip out the closed caption system out of Kart at some point, but this is good for now). --- src/s_sound.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/s_sound.c b/src/s_sound.c index 71e97c27b..c4af37082 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -678,9 +678,6 @@ void S_StartSoundAtVolume(const void *origin_p, sfxenum_t sfx_id, INT32 volume) sep = (~sep) & 255; } - // Handle closed caption input. - S_StartCaption(actual_id, cnum, MAXCAPTIONTICS); - // At this point it is determined that a sound can and should be played, so find a free channel to play it on cnum = S_getChannel(origin, sfx); @@ -689,6 +686,9 @@ void S_StartSoundAtVolume(const void *origin_p, sfxenum_t sfx_id, INT32 volume) return; // If there's no free channels, there won't be any for anymore players either } + // Handle closed caption input. + S_StartCaption(actual_id, cnum, MAXCAPTIONTICS); + // Now that we know we are going to play a sound, fill out this info channels[cnum].sfxinfo = sfx; channels[cnum].origin = origin;