From 5f7174c01a9a4bfb33456e0b973955cd065863f7 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 9 Jun 2006 07:50:42 +0000 Subject: [PATCH] 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 --- cl_input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2