Map between PlayerNumber and PlayerInfo. Most subclasses use a one to one mapping so that's what ScreenGameplay's version will do. If you need other behavior, implement this member function.

This commit is contained in:
Steve Checkoway
2006-06-24 04:19:00 +00:00
parent d008b0aa8b
commit e1f9e558df
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -2199,7 +2199,10 @@ void ScreenGameplay::Input( const InputEventPlus &input )
AbortGiveUp( true );
if( PREFSMAN->m_AutoPlay == PC_HUMAN )
m_vPlayerInfo[input.StyleI.player].m_pPlayer->Step( input.StyleI.col, input.DeviceI.ts );
{
PlayerInfo& pi = PlayerNumberToPlayerInfo( input.StyleI.player );
pi.m_pPlayer->Step( input.StyleI.col, input.DeviceI.ts );
}
}
}
}