From 402105d78796f487a0740122fabb0d2db812c5fb Mon Sep 17 00:00:00 2001 From: Tom Anderson Date: Wed, 3 Jul 2024 01:03:48 -0600 Subject: [PATCH] backout changes to missile since smart missile movement is still interpolated, the RayTest needs to stay in the classic units. --- src/game/CSmart.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/game/CSmart.cpp b/src/game/CSmart.cpp index c78d0000..27721b0a 100644 --- a/src/game/CSmart.cpp +++ b/src/game/CSmart.cpp @@ -321,7 +321,6 @@ if (IsClassicInterval()) { // indented like this because hope to remove it in th rayHit.distance = NormalizeVector(3, rayHit.direction); realSpeed = rayHit.distance; - rayHit.distance = FpsCoefficient2(rayHit.distance); RayTestWithGround(&rayHit, kSolidBit); @@ -336,7 +335,7 @@ if (IsClassicInterval()) { // indented like this because hope to remove it in th } if (rayHit.closestHit) { - realSpeed = ClassicCoefficient2(rayHit.distance); + realSpeed = rayHit.distance; speed[0] = FMul(rayHit.direction[0], realSpeed); speed[1] = FMul(rayHit.direction[1], realSpeed); speed[2] = FMul(rayHit.direction[2], realSpeed);