Fix: Network scoring (this time I am actually using the enumerations instead of arbitrary numbers)

This commit is contained in:
Charles Lohr
2005-05-22 05:44:56 +00:00
parent 81584d4879
commit 3d716abadf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -302,7 +302,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 - 1);
uint8_t ctr = (uint8_t) (playerID * 16 + step - ( TNS_MISS - 1 ) );
m_packet.Write1(ctr);
ctr = uint8_t( STATSMAN->m_CurStageStats.m_player[playerID].GetGrade()*16 );
+1 -1
View File
@@ -443,7 +443,7 @@ void ScoreKeeperMAX2::HandleHoldScore( HoldNoteScore holdScore, TapNoteScore tap
PlayerNumber pn = m_pPlayerState->m_PlayerNumber;
NSMAN->ReportScore(
pn,
holdScore+7,
holdScore+TNS_MARVELOUS,
m_pPlayerStageStats->iScore,
m_pPlayerStageStats->iCurCombo );
}