Skip to content

Commit

Permalink
backout changes to missile
Browse files Browse the repository at this point in the history
since smart missile movement is still interpolated, the RayTest needs to stay in the classic units.
  • Loading branch information
tra committed Jul 3, 2024
1 parent f9997af commit 402105d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/game/CSmart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
Expand Down

0 comments on commit 402105d

Please sign in to comment.