mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 15:50:00 +00:00
fix build
This commit is contained in:
parent
34b4efe242
commit
63c2b98c5e
|
@ -420,9 +420,9 @@ void CBulletTraces::AddTrace(CVector* start, CVector* end, float thicknes, uint3
|
||||||
float endProjUp = DotProduct(TheCamera.GetUp(), *end - TheCamera.GetPosition());
|
float endProjUp = DotProduct(TheCamera.GetUp(), *end - TheCamera.GetPosition());
|
||||||
float distUp = (endProjUp - startProjUp) * fStartDistFwd + startProjUp;
|
float distUp = (endProjUp - startProjUp) * fStartDistFwd + startProjUp;
|
||||||
|
|
||||||
float startProjRight = DotProduct(TheCamera.GetRight(), *end - TheCamera.GetPosition());
|
|
||||||
float startProjRight = DotProduct(TheCamera.GetRight(), *start - 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));
|
float dist = Sqrt(SQR(distUp) + SQR(distRight));
|
||||||
if (dist < 2.0f) {
|
if (dist < 2.0f) {
|
||||||
|
|
Loading…
Reference in a new issue