From 8a6f490c8040deb035a0450ca6c071c61bf410b5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 12 Sep 2006 23:21:14 +0000 Subject: [PATCH] simplify. (If you're not a screen that deals with StyleI.col, you probably shouldn't be using StyleI at all.) --- stepmania/src/ScreenSelectMusic.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stepmania/src/ScreenSelectMusic.cpp b/stepmania/src/ScreenSelectMusic.cpp index 800ee003a7..b88b58be62 100644 --- a/stepmania/src/ScreenSelectMusic.cpp +++ b/stepmania/src/ScreenSelectMusic.cpp @@ -285,10 +285,7 @@ void ScreenSelectMusic::Input( const InputEventPlus &input ) return; // don't care - /* XXX: What's the difference between this and StyleI.player? */ - /* StyleI won't be valid if it's a menu button that's pressed. - * There's got to be a better way of doing this. -Chris */ - PlayerNumber pn = GAMESTATE->GetCurrentStyle()->ControllerToPlayerNumber( input.GameI.controller ); + PlayerNumber pn = input.MenuI.player; if( !GAMESTATE->IsHumanPlayer(pn) ) return;