working on late join

This commit is contained in:
Chris Danford
2007-03-05 07:03:36 +00:00
parent 9c0d3f1d38
commit 42b6fe9808
2 changed files with 26 additions and 7 deletions
+2
View File
@@ -1991,6 +1991,8 @@ public:
PlayerNumber pn = Enum::Check<PlayerNumber>(L, 1);
if( lua_isnil(L,2) ) { p->m_pCurSteps[pn].Set( NULL ); }
else { Steps *pS = Luna<Steps>::check(L,2); p->m_pCurSteps[pn].Set( pS ); }
// Why Broadcast again? This is double-broadcasting. -Chris
MESSAGEMAN->Broadcast( (MessageID)(Message_CurrentStepsP1Changed+pn) );
return 0;
}