Skip to content

Commit

Permalink
adjust trails in fng
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrc6 committed Jan 5, 2025
1 parent f9f3f36 commit 2c72cdc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ option(CLIENT "Compile client" ON)
option(SERVER "Compile server" ON)
option(TOOLS "Compile tools" OFF)
option(DOWNLOAD_GTEST "Download and compile GTest" ${AUTO_DEPENDENCIES_DEFAULT})
option(STEAM "Build the Steam release version" OFF)
option(STEAM "Build the Steam release version" ON)
option(DISCORD "Enable Discord rich presence support" OFF)
option(DISCORD_DYNAMIC "Enable discovering Discord rich presence libraries at runtime (Linux only)" OFF)
option(PREFER_BUNDLED_LIBS "Prefer bundled libraries over system libraries" ${AUTO_DEPENDENCIES_DEFAULT})
Expand Down
5 changes: 5 additions & 0 deletions src/game/client/components/tclient/trails.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,14 @@ void CTrails::OnRender()
for(int ClientId = 0; ClientId < MAX_CLIENTS; ClientId++)
{
bool Local = m_pClient->m_Snap.m_LocalClientId == ClientId;

bool ZoomAllowed = GameClient()->m_Camera.ZoomAllowed();
if(!g_Config.m_ClTeeTrailOthers && !Local)
continue;

if(!Local && !ZoomAllowed)
continue;

if(!m_pClient->m_Snap.m_aCharacters[ClientId].m_Active)
{
if(m_HistoryValid[ClientId])
Expand Down

0 comments on commit 2c72cdc

Please sign in to comment.