mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-21 19:41:14 +00:00
Move CL_TryTrackNum again where it doesn't cause further complaints
This commit is contained in:
parent
4950f5971b
commit
53420aab02
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue