summaryrefslogtreecommitdiff
path: root/src/client/tent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/tent.c')
-rw-r--r--src/client/tent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/tent.c b/src/client/tent.c
index fbf1b10..10a1ba2 100644
--- a/src/client/tent.c
+++ b/src/client/tent.c
@@ -523,7 +523,7 @@ static void CL_AddBeams(void)
vectoangles2(dist, angles);
// add new entities for the beams
- d = VectorNormalize(dist);
+ d = VectorNormalizeLen(dist);
if (b->model == cl_mod_lightning) {
model_length = 35.0;
d -= 20.0; // correction so it doesn't end in middle of tesla
@@ -667,7 +667,7 @@ static void CL_AddPlayerBeams(void)
}
// add new entities for the beams
- d = VectorNormalize(dist);
+ d = VectorNormalizeLen(dist);
model_length = 32.0;
steps = ceil(d / model_length);
len = (d - model_length) / (steps - 1);
@@ -855,7 +855,7 @@ static void CL_RailSpiral(void)
VectorCopy(te.pos1, move);
VectorSubtract(te.pos2, te.pos1, vec);
- len = VectorNormalize(vec);
+ len = VectorNormalizeLen(vec);
MakeNormalVectors(vec, right, up);