mirror of https://github.com/AxioDL/metaforce.git
CLight: Mark kDefaultPosition and kDefaultDirection as constexpr
Same behavior, but allows runtime constructors to be elided.
This commit is contained in:
parent
17a1f90a89
commit
9483b64c91
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
namespace urde {
|
namespace urde {
|
||||||
|
|
||||||
static const zeus::CVector3f kDefaultPosition(0.f, 0.f, 0.f);
|
constexpr zeus::CVector3f kDefaultPosition(0.f, 0.f, 0.f);
|
||||||
static const zeus::CVector3f kDefaultDirection(0.f, -1.f, 0.f);
|
constexpr zeus::CVector3f kDefaultDirection(0.f, -1.f, 0.f);
|
||||||
|
|
||||||
float CLight::CalculateLightRadius() const {
|
float CLight::CalculateLightRadius() const {
|
||||||
if (x28_distL < FLT_EPSILON && x2c_distQ < FLT_EPSILON)
|
if (x28_distL < FLT_EPSILON && x2c_distQ < FLT_EPSILON)
|
||||||
|
|
Loading…
Reference in New Issue