X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=view.c;h=9c3512286b4c11dd4f65f9043b781a8c3defe88e;hb=0ee1cdc4820dea7fba7939c70025df759030bf02;hp=73acc74efdb06f04cc2e5647136ad61ed7b482c6;hpb=00141603df070f44751efaf4afbf9c8cfc7e2e74;p=xonotic%2Fdarkplaces.git diff --git a/view.c b/view.c index 73acc74e..9c351228 100644 --- a/view.c +++ b/view.c @@ -155,7 +155,7 @@ void V_DriftPitch (void) if ( fabs(cl.cmd.forwardmove) < cl_forwardspeed.value) cl.driftmove = 0; else - cl.driftmove += cl.frametime; + cl.driftmove += cl.realframetime; if ( cl.driftmove > v_centermove.value) { @@ -172,8 +172,8 @@ void V_DriftPitch (void) return; } - move = cl.frametime * cl.pitchvel; - cl.pitchvel += cl.frametime * v_centerspeed.value; + move = cl.realframetime * cl.pitchvel; + cl.pitchvel += cl.realframetime * v_centerspeed.value; if (delta > 0) { @@ -276,10 +276,10 @@ V_cshift_f */ static void V_cshift_f (void) { - v_cshift.destcolor[0] = atoi(Cmd_Argv(1)); - v_cshift.destcolor[1] = atoi(Cmd_Argv(2)); - v_cshift.destcolor[2] = atoi(Cmd_Argv(3)); - v_cshift.percent = atoi(Cmd_Argv(4)); + v_cshift.destcolor[0] = atof(Cmd_Argv(1)); + v_cshift.destcolor[1] = atof(Cmd_Argv(2)); + v_cshift.destcolor[2] = atof(Cmd_Argv(3)); + v_cshift.percent = atof(Cmd_Argv(4)); } @@ -421,7 +421,7 @@ void V_CalcRefdef (void) { viewangles[ROLL] += v_dmg_time/v_kicktime.value*v_dmg_roll; viewangles[PITCH] += v_dmg_time/v_kicktime.value*v_dmg_pitch; - v_dmg_time -= cl.frametime; + v_dmg_time -= cl.realframetime; } // origin VectorAdd(vieworg, cl.punchvector, vieworg); @@ -559,7 +559,7 @@ void V_CalcViewBlend(void) cl.cshifts[CSHIFT_CONTENTS].destcolor[1] = 80; cl.cshifts[CSHIFT_CONTENTS].destcolor[2] = 50; } - cl.cshifts[CSHIFT_CONTENTS].percent = 150 >> 1; + cl.cshifts[CSHIFT_CONTENTS].percent = 150 * 0.5; } else {