remove MenuInput::MakeInvalid
This commit is contained in:
@@ -24,7 +24,7 @@ const RString &MenuButtonToLocalizedString( MenuButton mb );
|
|||||||
|
|
||||||
struct MenuInput
|
struct MenuInput
|
||||||
{
|
{
|
||||||
MenuInput() { MakeInvalid(); };
|
MenuInput() { button = MenuButton_INVALID; }
|
||||||
MenuInput( MenuButton b ) { button = b; }
|
MenuInput( MenuButton b ) { button = b; }
|
||||||
|
|
||||||
MenuButton button;
|
MenuButton button;
|
||||||
@@ -33,7 +33,6 @@ struct MenuInput
|
|||||||
bool operator!=( const MenuInput &other ) const { return !operator==(other); };
|
bool operator!=( const MenuInput &other ) const { return !operator==(other); };
|
||||||
|
|
||||||
inline bool IsValid() const { return button != MenuButton_INVALID; };
|
inline bool IsValid() const { return button != MenuButton_INVALID; };
|
||||||
inline void MakeInvalid() { button = MenuButton_INVALID; };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ void ScreenSelectMaster::Init()
|
|||||||
|
|
||||||
ScreenSelect::Init();
|
ScreenSelect::Init();
|
||||||
|
|
||||||
m_TrackingRepeatingInput.MakeInvalid();
|
m_TrackingRepeatingInput = MenuButton_INVALID;
|
||||||
|
|
||||||
vector<PlayerNumber> vpns;
|
vector<PlayerNumber> vpns;
|
||||||
if( SHARED_SELECTION )
|
if( SHARED_SELECTION )
|
||||||
|
|||||||
Reference in New Issue
Block a user