Skip to content

Commit 3ab753c

Browse files
committed
remove second local base player check
1 parent 3de8fb8 commit 3ab753c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/game/client/viewrender.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,11 +1848,7 @@ static void GetSkyboxFogColor( float *pColor, bool ignoreOverride, bool ignoreHD
18481848
{
18491849

18501850
fogparams_t *pFogParams = NULL;
1851-
C_BasePlayer *pbp = C_BasePlayer::GetLocalPlayer();
1852-
if (pbp)
1853-
{
1854-
pFogParams = pbp->GetFogParams();
1855-
}
1851+
pFogParams = pbp->GetFogParams();
18561852

18571853
if (GetFogEnable(pFogParams))
18581854
{

0 commit comments

Comments
 (0)