diff options
author | Roman Masanin <36927roma@gmail.com> | 2020-10-15 15:04:03 +0200 |
---|---|---|
committer | Roman Masanin <36927roma@gmail.com> | 2020-10-15 15:04:03 +0200 |
commit | 63c2b98c5ed9988373d42b2318b1398fd0937bbf (patch) | |
tree | c9a36c52fa37664afe1d832c26c76e492a5b2b17 | |
parent | fix bullet traces rener and some renaming (diff) | |
download | re3-63c2b98c5ed9988373d42b2318b1398fd0937bbf.tar re3-63c2b98c5ed9988373d42b2318b1398fd0937bbf.tar.gz re3-63c2b98c5ed9988373d42b2318b1398fd0937bbf.tar.bz2 re3-63c2b98c5ed9988373d42b2318b1398fd0937bbf.tar.lz re3-63c2b98c5ed9988373d42b2318b1398fd0937bbf.tar.xz re3-63c2b98c5ed9988373d42b2318b1398fd0937bbf.tar.zst re3-63c2b98c5ed9988373d42b2318b1398fd0937bbf.zip |
-rw-r--r-- | src/render/SpecialFX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/SpecialFX.cpp b/src/render/SpecialFX.cpp index 4c69f749..25a33d4d 100644 --- a/src/render/SpecialFX.cpp +++ b/src/render/SpecialFX.cpp @@ -420,9 +420,9 @@ void CBulletTraces::AddTrace(CVector* start, CVector* end, float thicknes, uint3 float endProjUp = DotProduct(TheCamera.GetUp(), *end - TheCamera.GetPosition()); float distUp = (endProjUp - startProjUp) * fStartDistFwd + startProjUp; - float startProjRight = DotProduct(TheCamera.GetRight(), *end - TheCamera.GetPosition()); float startProjRight = DotProduct(TheCamera.GetRight(), *start - TheCamera.GetPosition()); - float distRight = (startProjRight - startProjRight) * fStartDistFwd + startProjRight; + float endProjRight = DotProduct(TheCamera.GetRight(), *end - TheCamera.GetPosition()); + float distRight = (endProjRight - startProjRight) * fStartDistFwd + startProjRight; float dist = Sqrt(SQR(distUp) + SQR(distRight)); if (dist < 2.0f) { |