Move CL_TryTrackNum again where it doesn't cause further complaints

This commit is contained in:
Marco Cawthorne 2024-08-26 16:34:08 -07:00
parent 4950f5971b
commit 53420aab02
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -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