Added Sending Options info to server on start.

This commit is contained in:
Charles Lohr
2004-08-22 08:03:19 +00:00
parent 7f93ed3efe
commit 7f5644fc8d
+14
View File
@@ -319,6 +319,20 @@ void NetworkSyncManager::StartRequest(short position)
else
WriteNT(m_packet,CString(""));
//Send Player (and song) Options
WriteNT(m_packet,GAMESTATE->m_SongOptions.GetString());
int players=0;
FOREACH_PlayerNumber (p)
{
players++;
WriteNT(m_packet,GAMESTATE->m_PlayerOptions[p].GetString());
}
for (int i=0;i<2-players;i++)
WriteNT(m_packet,""); //Write a NULL if no player
//Block until go is recieved.
//Switch to blocking mode (this is the only
//way I know how to get precievably instantanious results