Initialise m_DrawPaths inside the class

Default values like this are better set inside the class already rather
than in the constructor.
This commit is contained in:
Vantha 2026-02-24 10:47:51 +01:00 committed by Vantha
parent 64de934dd3
commit 004fdfdb58
2 changed files with 6 additions and 8 deletions

View file

@ -39,12 +39,13 @@
#include <utility>
#include <vector>
CCinemaManager::CCinemaManager()
: m_DrawPaths(false)
{
}
<<<<<<< Updated upstream
CCinemaManager::CCinemaManager() {}
void CCinemaManager::Update(const float deltaRealTime) const
=======
void CCinemaManager::Update(const float deltaRealTime)
>>>>>>> Stashed changes
{
CmpPtr<ICmpCinemaManager> cmpCinemaManager(g_Game->GetSimulation2()->GetSimContext().GetSystemEntity());
if (!cmpCinemaManager)

View file

@ -30,9 +30,6 @@ struct CColor;
class CCinemaManager
{
public:
CCinemaManager();
~CCinemaManager() {}
/**
* Renders paths and their nodes (if enabled).
*/
@ -54,7 +51,7 @@ private:
void DrawSpline(Renderer::Backend::IDeviceCommandContext& deviceCommandContext, const RNSpline& spline, const CColor& splineColor, int smoothness) const;
void DrawNodes(Renderer::Backend::IDeviceCommandContext& deviceCommandContext, const RNSpline& spline, const CColor& nodesColor) const;
bool m_DrawPaths;
bool m_DrawPaths = false;
};
#endif