From: Mircea Kitsune Date: Thu, 31 Mar 2011 01:06:24 +0000 (+0300) Subject: Disable intermission chase cam when reaching the map voting screen. It caused the... X-Git-Tag: xonotic-v0.5.0~268^2^2~31 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=87dcae1ca34504023c3c30c6a2fa1450adc9bf76;p=xonotic%2Fxonotic-data.pk3dir.git Disable intermission chase cam when reaching the map voting screen. It caused the mouse cursor to move the view as well, which looked kinda odd. Don't think this is bad looking either. --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index 021462ffa..1f667721b 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -407,7 +407,7 @@ void CSQC_UpdateView(float w, float h) if(spectatee_status >= 0 && (autocvar_cl_chase_death || autocvar_cl_chase_intermission)) if(autocvar_chase_active <= 0) // greater than 0 means it's enabled manually { - if((autocvar_cl_chase_death && getstati(STAT_HEALTH) <= 0 && !intermission) || (autocvar_cl_chase_intermission && intermission)) + if((autocvar_cl_chase_death && getstati(STAT_HEALTH) <= 0 && !intermission) || (autocvar_cl_chase_intermission && intermission) && intermission <= 1) // not during the map voting screen { if(!autocvar_chase_active) cvar_set("chase_active", "-1"); // -1 enables chase_active as well as marking it as enabled by this code, and not by the user (which would be 1)