From: MirceaKitsune Date: Thu, 8 Mar 2012 16:37:29 +0000 (+0200) Subject: Fix healthsize FOV X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cda7ae7e90f0d1b278f8eca9beb5029b66179804;p=voretournament%2Fvoretournament.git Fix healthsize FOV --- diff --git a/data/qcsrc/client/View.qc b/data/qcsrc/client/View.qc index 57e26285..22a5fbf8 100644 --- a/data/qcsrc/client/View.qc +++ b/data/qcsrc/client/View.qc @@ -417,13 +417,13 @@ void CSQC_UpdateView(float w, float h) } } - float apply_fov; - if(cvar("cl_healthsize_fov") && frametime) + if(frametime) { + float apply_fov; apply_fov = cvar("menu_fov"); - if(g_healthsize_center && spectatee_status >= 0) + if(g_healthsize_center >= 0 && cvar("cl_healthsize_fov") && spectatee_status >= 0) apply_fov += (g_healthsize_center - bound(g_healthsize_min, getstati(STAT_HEALTH), g_healthsize_max)) * cvar("cl_healthsize_fov"); - if(cvar("gov") != apply_fov) + if(cvar("fov") != apply_fov) cvar_set("fov", ftos(apply_fov)); } diff --git a/docs/TODO.txt b/docs/TODO.txt index f0cf62e9..9e0c020c 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -132,10 +132,10 @@ - 0.8: Make player fatness depend on frags, using a trick I heard about with shaders -- 0.7 BUG: Disabling g_healthsize gives a different field of view, even at 100 heatlh - - 0.7: Make sure all effects work for spectators too (such as the macro earthquake effect) - 0.7 | 0.8: The stomach gurgle sound duration does not match the pitch properly -- 0.7: Some maps use cdtrack while others use track names. Fix this. \ No newline at end of file +- 0.7: Some maps use cdtrack while others use track names. Fix this. + +- 0.7 BUG: Stomach load won't appear when g_healthsize is off and belly is empty. \ No newline at end of file