merge PlayCommand2 and PlayCommand so that Actor derivities only have to override one method to get the correct behavior
This commit is contained in:
@@ -144,7 +144,7 @@ GenreDisplay::~GenreDisplay()
|
||||
{
|
||||
}
|
||||
|
||||
void GenreDisplay::PlayCommand( const CString &sCommandName )
|
||||
void GenreDisplay::PlayCommand( const CString &sCommandName, Actor* pParent )
|
||||
{
|
||||
if( sCommandName == MessageToString(MESSAGE_CURRENT_SONG_CHANGED) )
|
||||
{
|
||||
@@ -185,7 +185,7 @@ void GenreDisplay::PlayCommand( const CString &sCommandName )
|
||||
}
|
||||
else
|
||||
{
|
||||
Actor::PlayCommand( sCommandName );
|
||||
Actor::PlayCommand( sCommandName, pParent );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user