Minor compile fixes and corrections

This commit is contained in:
Phillip Stephens 2023-10-22 17:18:03 -07:00
parent e9ec10a382
commit 316d937f11
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#pragma once
#include <cstdint>
#ifndef _ZEUS_SIMD_INCLUDED
#error simd_sse.hpp must not be included directly. Include simd.hpp instead.
#endif

View File

@ -183,7 +183,7 @@ CTransform lookAt(const CVector3f& pos, const CVector3f& lookPos, const CVector3
CVector3f getBezierPoint(const CVector3f& a, const CVector3f& b, const CVector3f& c, const CVector3f& d, float t) {
const float omt = 1.f - t;
return ((a * omt + b * t) * omt + (b * omt + c * t) * t) * omt +
return (((a * omt) + b * t) * omt + (b * omt + c * t) * t) * omt +
((b * omt + c * t) * omt + (c * omt + d * t) * t) * t;
}