mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
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:
parent
64de934dd3
commit
004fdfdb58
2 changed files with 6 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue