remove MenuInput::MakeInvalid

This commit is contained in:
Glenn Maynard
2006-09-14 20:22:42 +00:00
parent af20d30581
commit 1d3a66e669
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -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
+1 -1
View File
@@ -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 )