From: havoc Date: Fri, 9 Jun 2006 07:50:42 +0000 (+0000) Subject: fixed another C99 lazy variable declaration bug in div0's physics patch X-Git-Tag: xonotic-v0.1.0preview~3927 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5f7174c01a9a4bfb33456e0b973955cd065863f7;p=xonotic%2Fdarkplaces.git fixed another C99 lazy variable declaration bug in div0's physics patch git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6450 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_input.c b/cl_input.c index f7cd45df..ae0ba2f6 100644 --- a/cl_input.c +++ b/cl_input.c @@ -993,6 +993,7 @@ void CL_ClientMovement_Physics_Walk(cl_clientmovement_state_t *s) { if (s->waterjumptime <= 0) { + vec_t f; vec_t vel_straight; vec_t vel_z; vec3_t vel_perpend; @@ -1014,7 +1015,7 @@ void CL_ClientMovement_Physics_Walk(cl_clientmovement_state_t *s) VectorMA(s->velocity, -vel_straight, wishdir, vel_perpend); vel_perpend[2] -= vel_z; - vec_t f = wishspeed - vel_straight; + f = wishspeed - vel_straight; if(f > 0) vel_straight += min(f, s->movevars_accelerate * s->q.frametime * wishspeed) * s->movevars_airaccel_qw; if(wishspeed > 0)