From 3d899146930b027efeda03451352196e36e466ba Mon Sep 17 00:00:00 2001 From: MinaciousGrace Date: Wed, 3 May 2017 01:31:33 -0400 Subject: [PATCH] maybe just construct the rstrings in judgment messages rather than casting to them --- src/Player.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Player.cpp b/src/Player.cpp index 1cb7d287d6..7dc8cb83ac 100644 --- a/src/Player.cpp +++ b/src/Player.cpp @@ -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("Mine")); + msg.SetParam( "Type", RString("Mine")); // Ms scoring implemenation - Mina if (tns == TNS_HitMine) @@ -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("Tap")); + msg.SetParam( "Type", RString("Tap")); msg.SetParam( "TapNoteOffset", tn.result.fTapNoteOffset ); if ( m_pPlayerStageStats ) msg.SetParam("Val", m_pPlayerStageStats->m_iTapNoteScores[tns] + 1); @@ -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("Hold")); + msg.SetParam("Type", RString("Hold")); if ( m_pPlayerStageStats) { msg.SetParam("Val", m_pPlayerStageStats->m_iHoldNoteScores[tn.HoldResult.hns] + 1);