From da5eb84730f7d14a33a09f1e1d14056e7db45835 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Sun, 13 Oct 2013 15:05:36 -0400 Subject: [PATCH] Player: broadcast StepPN message (compat) For backwards compatibility, broadcast the old StepP1/2 message in addition to the new Step message. New themes, charts, etc. should of course use the new message with parameters. --- src/Player.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Player.cpp b/src/Player.cpp index a5462fecbd..472f37145c 100644 --- a/src/Player.cpp +++ b/src/Player.cpp @@ -2695,6 +2695,9 @@ void Player::StepStrumHopo( int col, int row, const RageTimer &tm, bool bHeld, b msg.SetParam( "MultiPlayer", m_pPlayerState->m_mp ); msg.SetParam( "Column", col ); MESSAGEMAN->Broadcast( msg ); + // Backwards compatibility + Message msg2( ssprintf("StepP%d", m_pPlayerState->m_PlayerNumber + 1) ); + MESSAGEMAN->Broadcast( msg2 ); } }