Move CL_TryTrackNum out of the QWSKINS define
This commit is contained in:
parent
75e51c3081
commit
7d70e3c612
1 changed files with 8 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue