Updated to allow for sending of mine data. Also increment protocol version.

This commit is contained in:
Josh Allen
2006-07-06 17:55:44 +00:00
parent 6c80e0fa5a
commit de3be4c483
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -315,7 +315,7 @@ void NetworkSyncManager::ReportScore(int playerID, int step, int score, int comb
m_packet.ClearPacket();
m_packet.Write1( NSCGSU );
uint8_t ctr = (uint8_t) (playerID * 16 + step - ( TNS_Miss - 1 ) );
uint8_t ctr = (uint8_t) (playerID * 16 + step - ( TNS_HitMine - 1 ) );
m_packet.Write1(ctr);
ctr = uint8_t( STATSMAN->m_CurStageStats.m_player[playerID].GetGrade()*16 );
@@ -344,7 +344,7 @@ void NetworkSyncManager::ReportScore(int playerID, int step, int score, int comb
iOffset=1;
//Report 0 if hold, or miss (don't forget mines should report)
if (((step<TNS_W5)||(step>TNS_W1))&&(step!=TNS_HitMine))
if ((step == TNS_Miss) || (step > TNS_W1))
iOffset = 0;
m_packet.Write2((uint16_t) iOffset);