Updated to allow for sending of mine data. Also increment protocol version.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user