From 7d70e3c612cd18fb828a54e5e262ded32a60c53f Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Mon, 26 Aug 2024 16:13:44 -0700 Subject: [PATCH] Move CL_TryTrackNum out of the QWSKINS define --- engine/client/cl_parse.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/engine/client/cl_parse.c b/engine/client/cl_parse.c index 2e1acef6b..d51d5d912 100644 --- a/engine/client/cl_parse.c +++ b/engine/client/cl_parse.c @@ -5620,13 +5620,6 @@ static int QDECL CLQ2_EnumeratedSkin(const char *name, qofs_t size, time_t mtime return true; } -//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_NewTranslation @@ -5752,6 +5745,14 @@ 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