simplify (now InputMapper::ControllerToPlayerNumber logic is the

same as InputMapper::MenuToGame)
This commit is contained in:
Glenn Maynard
2006-09-30 05:52:06 +00:00
parent 13085923c5
commit 85fc5a2dfb
3 changed files with 2 additions and 18 deletions
+2 -2
View File
@@ -763,8 +763,8 @@ bool InputMapper::GameToDevice( const GameInput &GameI, int iSlotNum, DeviceInpu
PlayerNumber InputMapper::ControllerToPlayerNumber( GameController controller )
{
if( GAMESTATE->GetCurrentStyle() )
return GAMESTATE->GetCurrentStyle()->ControllerToPlayerNumber(controller);
if( GAMESTATE->GetCurrentStyle() && GAMESTATE->GetCurrentStyle()->m_StyleType == ONE_PLAYER_TWO_SIDES )
return GAMESTATE->m_MasterPlayerNumber;
else
return (PlayerNumber) controller;
}