CDamageableTriggerExtra: Mark member functions as const where applicable
These don't modify instance state.
This commit is contained in:
parent
8ad6da5501
commit
8c3f77df8a
|
@ -126,7 +126,7 @@ void CDamageableTriggerExtra::UpdatePlaneTransform()
|
|||
MarkTransformChanged();
|
||||
}
|
||||
|
||||
CDamageableTriggerExtra::ERenderSide CDamageableTriggerExtra::RenderSideForDirection(const CVector3f& rkDir)
|
||||
CDamageableTriggerExtra::ERenderSide CDamageableTriggerExtra::RenderSideForDirection(const CVector3f& rkDir) const
|
||||
{
|
||||
// Get the index of the largest XYZ component
|
||||
const CVector3f AbsDir(Math::Abs(rkDir.X), Math::Abs(rkDir.Y), Math::Abs(rkDir.Z));
|
||||
|
@ -144,7 +144,7 @@ CDamageableTriggerExtra::ERenderSide CDamageableTriggerExtra::RenderSideForDirec
|
|||
return ERenderSide::NoRender;
|
||||
}
|
||||
|
||||
CDamageableTriggerExtra::ERenderSide CDamageableTriggerExtra::TransformRenderSide(ERenderSide Side)
|
||||
CDamageableTriggerExtra::ERenderSide CDamageableTriggerExtra::TransformRenderSide(ERenderSide Side) const
|
||||
{
|
||||
// DamageableTrigger has a convenience feature implemented that changes the
|
||||
// render side when the area's been rotated, so we need to replicate it here.
|
||||
|
|
|
@ -36,8 +36,8 @@ public:
|
|||
~CDamageableTriggerExtra() override;
|
||||
void CreateMaterial();
|
||||
void UpdatePlaneTransform();
|
||||
ERenderSide RenderSideForDirection(const CVector3f& rkDir);
|
||||
ERenderSide TransformRenderSide(ERenderSide Side);
|
||||
ERenderSide RenderSideForDirection(const CVector3f& rkDir) const;
|
||||
ERenderSide TransformRenderSide(ERenderSide Side) const;
|
||||
void OnTransformed() override;
|
||||
void PropertyModified(IProperty* pProperty) override;
|
||||
bool ShouldDrawNormalAssets() override;
|
||||
|
|
Loading…
Reference in New Issue