readability cleanup of vector comparisons to 0, now all such comparisons use VectorIsNull, and a little more whitespace cleanup in cl_pred.c

This commit is contained in:
Forest Hale 2001-03-16 12:27:11 +00:00
parent f922262b61
commit 05545350e7
6 changed files with 21 additions and 29 deletions

View file

@ -285,7 +285,7 @@ PM_GroundMove (void)
float downdist, updist;
pmove.velocity[2] = 0;
if (!pmove.velocity[0] && !pmove.velocity[1] && !pmove.velocity[2])
if (VectorIsNull(pmove.velocity))
return;
// first try just moving to the destination