]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_input.c
before calling SetNewParms qc function, set self to world to intentionally cause...
[xonotic/darkplaces.git] / cl_input.c
index 03421328373b09d3ceac061248649b2553a4cd9f..b24d8ea186d46da73167eff56d8f14da4fa98281 100644 (file)
@@ -632,6 +632,8 @@ void CL_ClientMovement_Replay(void)
                                wishspeed = VectorLength(wishvel);
                                if (wishspeed)
                                        VectorScale(wishvel, 1 / wishspeed, wishdir);
+                               else
+                                       VectorSet( wishdir, 0.0, 0.0, 0.0 );
                                wishspeed = min(wishspeed, cl_movement_maxspeed.value);
                                if (crouch)
                                        wishspeed *= 0.5;
@@ -672,6 +674,8 @@ void CL_ClientMovement_Replay(void)
                                wishspeed = VectorLength(wishvel);
                                if (wishspeed)
                                        VectorScale(wishvel, 1 / wishspeed, wishdir);
+                               else
+                                       VectorSet( wishdir, 0.0, 0.0, 0.0 );
                                wishspeed = min(wishspeed, cl_movement_maxspeed.value);
                                if (crouch)
                                        wishspeed *= 0.5;