CLight: Mark kDefaultPosition and kDefaultDirection as constexpr

Same behavior, but allows runtime constructors to be elided.
This commit is contained in:
Lioncash 2020-03-17 20:44:19 -04:00
parent 17a1f90a89
commit 9483b64c91
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@
namespace urde {
static const zeus::CVector3f kDefaultPosition(0.f, 0.f, 0.f);
static const zeus::CVector3f kDefaultDirection(0.f, -1.f, 0.f);
constexpr zeus::CVector3f kDefaultPosition(0.f, 0.f, 0.f);
constexpr zeus::CVector3f kDefaultDirection(0.f, -1.f, 0.f);
float CLight::CalculateLightRadius() const {
if (x28_distL < FLT_EPSILON && x2c_distQ < FLT_EPSILON)