Implemented: Evaluation-time player options

This commit is contained in:
Charles Lohr
2004-09-06 04:24:51 +00:00
parent f4efbed2b3
commit cb07d3511b
5 changed files with 11 additions and 1 deletions
+7
View File
@@ -14,6 +14,7 @@ LanPlayer::LanPlayer() {
maxCombo = 0;
Grade = 0;
offset = 0;
options = "";
}
StepManiaLanServer::StepManiaLanServer() {
@@ -129,6 +130,10 @@ void StepManiaLanServer::ParseData(PacketFunctions &Packet, int clientNum) {
case 8:
SelectSong(Packet, clientNum);
break;
case 11:
Client[clientNum].Player[0].options = Packet.ReadNT();
Client[clientNum].Player[1].options = Packet.ReadNT();
break;
default:
break;
}
@@ -253,6 +258,8 @@ void StepManiaLanServer::GameOver(PacketFunctions &Packet, int clientNum) {
Reply.Write2( (uint16_t) playersPtr[x]->steps[8] ); //Tack on OK
for (int x = 0; x < numPlayers; x++)
Reply.Write2( (uint16_t) playersPtr[x]->maxCombo );
for (int x = 0; x < numPlayers; x++)
Reply.WriteNT( playersPtr[x]->options );
SendToAllClients(Reply);
}
}