use INPUTMAPPER->ControllerToPlayerNumber

This commit is contained in:
Glenn Maynard
2006-09-30 05:47:22 +00:00
parent 24a6df7b9d
commit 2700d88b18
+1 -3
View File
@@ -7,7 +7,6 @@
#include "ThemeManager.h"
#include "RageLog.h"
#include "Game.h"
#include "Style.h"
#include "RageUtil.h"
#include "PlayerState.h"
#include "InputEventPlus.h"
@@ -222,8 +221,7 @@ bool CodeDetector::EnteredModeMenu( GameController controller )
bool CodeDetector::DetectAndAdjustMusicOptions( GameController controller )
{
const Style* pStyle = GAMESTATE->GetCurrentStyle();
PlayerNumber pn = pStyle->ControllerToPlayerNumber( controller );
PlayerNumber pn = INPUTMAPPER->ControllerToPlayerNumber( controller );
for( int c=CODE_MIRROR; c<=CODE_CANCEL_ALL; c++ )
{