From 53420aab02f6fae7b5c25d6f610c8abe7ef6a264 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Mon, 26 Aug 2024 16:34:08 -0700 Subject: [PATCH] Move CL_TryTrackNum again where it doesn't cause further complaints --- engine/client/cl_parse.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/engine/client/cl_parse.c b/engine/client/cl_parse.c index d51d5d912..3b526c577 100644 --- a/engine/client/cl_parse.c +++ b/engine/client/cl_parse.c @@ -5447,6 +5447,14 @@ static void CLQ2_ParseStartSoundPacket(void) } #endif +//returns the player if they're not spectating. +static int CL_TryTrackNum(playerview_t *pv) +{ + if (pv->spectator && pv->cam_state != CAM_FREECAM && pv->cam_spec_track >= 0) + return pv->cam_spec_track; + return pv->playernum; +} + #if defined(NQPROT) || defined(PEXT_SOUNDDBL) static void CLNQ_ParseStartSoundPacket(void) { @@ -5745,14 +5753,6 @@ void CL_NewTranslation (int slot) } #endif -//returns the player if they're not spectating. -static int CL_TryTrackNum(playerview_t *pv) -{ - if (pv->spectator && pv->cam_state != CAM_FREECAM && pv->cam_spec_track >= 0) - return pv->cam_spec_track; - return pv->playernum; -} - /* ============== CL_UpdateUserinfo