Skip to content

Commit

Permalink
Remove experimental cg_fov code
Browse files Browse the repository at this point in the history
  • Loading branch information
SE2Dev committed Jun 25, 2017
1 parent 8cc003b commit 6969027
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions components/game_mod/dvar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,26 +154,7 @@ void Dvar_SetFromStringByName(const char *dvarName, const char *string)
if (dvarName && string)
{
if (!_stricmp(dvarName, "cg_fov") && !_stricmp(string, "65"))
{
if (cg_fov == NULL || cg_fov_default == NULL)
return;

#if _DEBUG
Com_Printf(0, "CG_FOV_DEFAULT: %p\n", cg_fov_default);
Com_Printf(0, "CG_FOV_DEFAULT: %f\n", cg_fov_default->current.value);
#endif

//
// Note: If we run Dvar_SetFloat *every* time the game crashes
//
if (cg_fov->current.value != cg_fov_default->current.value)
{
Dvar_SetFloat(cg_fov, cg_fov_default->current.value);
return;
}

return;
}

if (!_stricmp(dvarName, "cg_default_fov") && !_stricmp(string, "65"))
return;
Expand Down

0 comments on commit 6969027

Please sign in to comment.