GetPlayerInfoForInput allows mapping inputs to PlayerInfos rather than just PlayerNumbers to PlayerInfos.

This commit is contained in:
Steve Checkoway
2006-07-09 20:14:06 +00:00
parent 025997d453
commit 4a324be6dd
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -47,7 +47,6 @@
#include "Player.h"
#include "DifficultyIcon.h"
#include "DifficultyMeter.h"
#include "InputEventPlus.h"
#include "XmlFile.h"
#include "Background.h"
#include "Foreground.h"
@@ -2194,7 +2193,7 @@ void ScreenGameplay::Input( const InputEventPlus &input )
if( PREFSMAN->m_AutoPlay == PC_HUMAN )
{
PlayerInfo& pi = PlayerNumberToPlayerInfo( input.StyleI.player );
PlayerInfo& pi = GetPlayerInfoForInput( input );
pi.m_pPlayer->Step( input.StyleI.col, input.DeviceI.ts );
}
}