CLight: Eliminate implicit conversions to bool
This commit is contained in:
parent
ea86654935
commit
4c03054109
|
@ -97,7 +97,7 @@ CVector3f CLight::CalculateSpotAngleAtten() const
|
|||
// ************ ACCESSORS ************
|
||||
float CLight::GetRadius() const
|
||||
{
|
||||
if (mDirtyFlags & CLIGHT_NO_RADIUS)
|
||||
if ((mDirtyFlags & CLIGHT_NO_RADIUS) != 0)
|
||||
{
|
||||
mCachedRadius = CalculateRadius();
|
||||
mDirtyFlags &= ~CLIGHT_NO_RADIUS;
|
||||
|
@ -108,7 +108,7 @@ float CLight::GetRadius() const
|
|||
|
||||
float CLight::GetIntensity() const
|
||||
{
|
||||
if (mDirtyFlags & CLIGHT_NO_INTENSITY)
|
||||
if ((mDirtyFlags & CLIGHT_NO_INTENSITY) != 0)
|
||||
{
|
||||
mCachedIntensity = CalculateIntensity();
|
||||
mDirtyFlags &= ~CLIGHT_NO_INTENSITY;
|
||||
|
|
Loading…
Reference in New Issue