Skip to content

Commit

Permalink
IMainMenu::IsActive marked as const
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jul 27, 2018
1 parent 44657a1 commit fb14703
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/xrEngine/IGame_Persistent.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class IMainMenu
public:
virtual ~IMainMenu(){};
virtual void Activate(bool bActive) = 0;
virtual bool IsActive() = 0;
virtual bool IsActive() const = 0;
virtual bool CanSkipSceneRendering() = 0;
virtual void DestroyInternal(bool bForce) = 0;
};
Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/MainMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ bool CMainMenu::ReloadUI()
return true;
}

bool CMainMenu::IsActive() { return !!m_Flags.test(flActive); }
bool CMainMenu::IsActive() const { return m_Flags.test(flActive); }
bool CMainMenu::CanSkipSceneRendering() { return IsActive() && !m_Flags.test(flGameSaveScreenshot); }

// IInputReceiver
Expand Down
3 changes: 1 addition & 2 deletions src/xrGame/MainMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ class CMainMenu : public IMainMenu,
public CDialogHolder,
public CUIWndCallback,
public CDeviceResetNotifier

{
CUIDialogWnd* m_startDialog;

Expand Down Expand Up @@ -136,7 +135,7 @@ class CMainMenu : public IMainMenu,
virtual ~CMainMenu();

virtual void Activate(bool bActive);
virtual bool IsActive();
bool IsActive() const override;
virtual bool CanSkipSceneRendering();

virtual bool IgnorePause() { return true; }
Expand Down

0 comments on commit fb14703

Please sign in to comment.