From 4fd32f1259088fc80f48085b288e3e58e61e699e Mon Sep 17 00:00:00 2001 From: Marcio Barrientos Date: Sat, 7 Jan 2012 17:26:18 -0600 Subject: [PATCH] Change the style after you change the steps with SetCurrentSteps( PlayerNumber pn, Steps steps ) lua binding --- src/GameState.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GameState.cpp b/src/GameState.cpp index 34e8337c99..e985c0cb56 100644 --- a/src/GameState.cpp +++ b/src/GameState.cpp @@ -2205,6 +2205,7 @@ public: PlayerNumber pn = Enum::Check(L, 1); if( lua_isnil(L,2) ) { p->m_pCurSteps[pn].Set( NULL ); } else { Steps *pS = Luna::check(L,2); p->m_pCurSteps[pn].Set( pS ); } + GAMESTATE->SetCurrentStyle( GAMEMAN->GetFirstCompatibleStyle( GAMESTATE->m_pCurGame, GAMESTATE->GetNumSidesJoined(), p->m_pCurSteps[pn]->m_StepsType )); // Why Broadcast again? This is double-broadcasting. -Chris MESSAGEMAN->Broadcast( (MessageID)(Message_CurrentStepsP1Changed+pn) );