Skip to content

Commit

Permalink
Couple more static cast cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace authored Sep 9, 2016
1 parent 4872f09 commit 69e5251
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3117,7 +3117,7 @@ void Player::SetMineJudgment( TapNoteScore tns , int iTrack )
msg.SetParam( "TapNoteScore", tns );
msg.SetParam( "FirstTrack", iTrack );
msg.SetParam( "Judgment", tns);
msg.SetParam( "Type", RString("Mine"));
msg.SetParam( "Type", static_cast<RString>("Mine"));
MESSAGEMAN->Broadcast( msg );
if( m_pPlayerStageStats &&
( ( tns == TNS_AvoidMine && AVOID_MINE_INCREMENTS_COMBO ) ||
Expand All @@ -3141,7 +3141,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", RString("Tap"));
msg.SetParam( "Type", static_cast<RString>"Tap"));
msg.SetParam( "TapNoteOffset", tn.result.fTapNoteOffset );
msg.SetParam( "Val", m_pPlayerStageStats->m_iTapNoteScores[tns] + 1);

Expand Down Expand Up @@ -3191,11 +3191,11 @@ void Player::SetHoldJudgment( TapNote &tn, int iTrack )
msg.SetParam( "Player", m_pPlayerState->m_PlayerNumber );
msg.SetParam( "MultiPlayer", m_pPlayerState->m_mp );
msg.SetParam( "FirstTrack", iTrack );
msg.SetParam( "NumTracks", (int)m_vpHoldJudgment.size() );
msg.SetParam( "NumTracks", static_cast<int>(m_vpHoldJudgment.size()) );
msg.SetParam( "TapNoteScore", tn.result.tns );
msg.SetParam( "HoldNoteScore", tn.HoldResult.hns );
msg.SetParam( "Judgment", tn.HoldResult.hns);
msg.SetParam( "Type", RString("Hold"));
msg.SetParam( "Type", static_cast<RString>"Hold"));
msg.SetParam( "Val", m_pPlayerStageStats->m_iHoldNoteScores[tn.HoldResult.hns] + 1);

Lua* L = LUA->Get();
Expand Down

0 comments on commit 69e5251

Please sign in to comment.