]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/View.qc
Fix healthsize FOV
[voretournament/voretournament.git] / data / qcsrc / client / View.qc
index 57e26285f7ca91222db35441e3ef655ee3d7b1f2..22a5fbf8a1b98093898892e8e767806620a309b8 100644 (file)
@@ -417,13 +417,13 @@ void CSQC_UpdateView(float w, float h)
                }\r
        }\r
 \r
-       float apply_fov;\r
-       if(cvar("cl_healthsize_fov") && frametime)\r
+       if(frametime)\r
        {\r
+               float apply_fov;\r
                apply_fov = cvar("menu_fov");\r
-               if(g_healthsize_center && spectatee_status >= 0)\r
+               if(g_healthsize_center >= 0 && cvar("cl_healthsize_fov") && spectatee_status >= 0)\r
                        apply_fov += (g_healthsize_center - bound(g_healthsize_min, getstati(STAT_HEALTH), g_healthsize_max)) * cvar("cl_healthsize_fov");\r
-               if(cvar("gov") != apply_fov)\r
+               if(cvar("fov") != apply_fov)\r
                        cvar_set("fov", ftos(apply_fov));\r
        }\r
 \r