Skip to content

Commit 6969027

Browse files
committed
Remove experimental cg_fov code
1 parent 8cc003b commit 6969027

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

components/game_mod/dvar.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -154,26 +154,7 @@ void Dvar_SetFromStringByName(const char *dvarName, const char *string)
154154
if (dvarName && string)
155155
{
156156
if (!_stricmp(dvarName, "cg_fov") && !_stricmp(string, "65"))
157-
{
158-
if (cg_fov == NULL || cg_fov_default == NULL)
159-
return;
160-
161-
#if _DEBUG
162-
Com_Printf(0, "CG_FOV_DEFAULT: %p\n", cg_fov_default);
163-
Com_Printf(0, "CG_FOV_DEFAULT: %f\n", cg_fov_default->current.value);
164-
#endif
165-
166-
//
167-
// Note: If we run Dvar_SetFloat *every* time the game crashes
168-
//
169-
if (cg_fov->current.value != cg_fov_default->current.value)
170-
{
171-
Dvar_SetFloat(cg_fov, cg_fov_default->current.value);
172-
return;
173-
}
174-
175157
return;
176-
}
177158

178159
if (!_stricmp(dvarName, "cg_default_fov") && !_stricmp(string, "65"))
179160
return;

0 commit comments

Comments
 (0)