]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Don't offset the FOV based on health when we're an observer
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 16 Nov 2011 01:03:23 +0000 (03:03 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 16 Nov 2011 01:03:23 +0000 (03:03 +0200)
data/qcsrc/client/View.qc

index 08f1d363f5c32fc1bafaae8162a6913548233124..2635eaca378644a36b2da90365a59bf8630ff890 100644 (file)
@@ -420,7 +420,7 @@ void CSQC_UpdateView(float w, float h)
        if(cvar("cl_healthsize_fov") && frametime)\r
        {\r
                apply_fov = cvar("menu_fov");\r
-               if(g_healthsize_center)\r
+               if(g_healthsize_center && 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
                        cvar_set("fov", ftos(apply_fov));\r