From f600e27b4a3d5746a1821601a5de856b3fb50303 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 14 Sep 2006 03:49:40 +0000 Subject: [PATCH] remove MenuInput::player --- stepmania/src/MenuInput.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/stepmania/src/MenuInput.h b/stepmania/src/MenuInput.h index a23f0878dd..3ccddf6cea 100644 --- a/stepmania/src/MenuInput.h +++ b/stepmania/src/MenuInput.h @@ -27,16 +27,15 @@ const RString &MenuButtonToLocalizedString( MenuButton mb ); struct MenuInput { MenuInput() { MakeInvalid(); }; - MenuInput( PlayerNumber pn, MenuButton b ) { player = pn; button = b; }; + MenuInput( PlayerNumber pn, MenuButton b ) { button = b; }; - PlayerNumber player; MenuButton button; - bool operator==( const MenuInput &other ) const { return player == other.player && button == other.button; }; + bool operator==( const MenuInput &other ) const { return button == other.button; }; bool operator!=( const MenuInput &other ) const { return !operator==(other); }; - inline bool IsValid() const { return player != PLAYER_INVALID; }; - inline void MakeInvalid() { player = PLAYER_INVALID; button = MenuButton_INVALID; }; + inline bool IsValid() const { return button != MenuButton_INVALID; }; + inline void MakeInvalid() { button = MenuButton_INVALID; }; }; #endif