Skip to content

Commit

Permalink
maybe just construct the rstrings in judgment messages rather than ca…
Browse files Browse the repository at this point in the history
…sting to them
  • Loading branch information
MinaciousGrace committed May 3, 2017
1 parent bb065fc commit 3d89914
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3135,7 +3135,7 @@ void Player::SetMineJudgment( TapNoteScore tns , int iTrack )
msg.SetParam( "TapNoteScore", tns );
msg.SetParam( "FirstTrack", iTrack );
msg.SetParam( "Judgment", tns);
msg.SetParam( "Type", static_cast<RString>("Mine"));
msg.SetParam( "Type", RString("Mine"));

// Ms scoring implemenation - Mina
if (tns == TNS_HitMine)
Expand Down Expand Up @@ -3185,7 +3185,7 @@ void Player::SetJudgment( int iRow, int iTrack, const TapNote &tn, TapNoteScore
msg.SetParam( "Early", fTapNoteOffset < 0.0f );
msg.SetParam( "Judgment", tns);
msg.SetParam( "NoteRow", iRow);
msg.SetParam( "Type", static_cast<RString>("Tap"));
msg.SetParam( "Type", RString("Tap"));
msg.SetParam( "TapNoteOffset", tn.result.fTapNoteOffset );
if ( m_pPlayerStageStats )
msg.SetParam("Val", m_pPlayerStageStats->m_iTapNoteScores[tns] + 1);
Expand Down Expand Up @@ -3269,7 +3269,7 @@ void Player::SetHoldJudgment( TapNote &tn, int iTrack )
msg.SetParam("TapNoteScore", tn.result.tns);
msg.SetParam("HoldNoteScore", tn.HoldResult.hns);
msg.SetParam("Judgment", tn.HoldResult.hns);
msg.SetParam("Type", static_cast<RString>("Hold"));
msg.SetParam("Type", RString("Hold"));
if ( m_pPlayerStageStats) {
msg.SetParam("Val", m_pPlayerStageStats->m_iHoldNoteScores[tn.HoldResult.hns] + 1);

Expand Down

0 comments on commit 3d89914

Please sign in to comment.