Move CL_TryTrackNum out of the QWSKINS define

This commit is contained in:
Marco Cawthorne 2024-08-26 16:13:44 -07:00
parent 75e51c3081
commit 7d70e3c612
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

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