simplify. (If you're not a screen that deals with StyleI.col, you probably shouldn't be using StyleI at all.)

This commit is contained in:
Glenn Maynard
2006-09-12 23:21:14 +00:00
parent ba1daf8183
commit 8a6f490c80
+1 -4
View File
@@ -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;