Replace StringToInt with the std version.
Again, RageUtil isn't the right home.
This commit is contained in:
+4
-4
@@ -3313,7 +3313,7 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM )
|
||||
}
|
||||
else if( SM == SM_BackFromDifficultyMeterChange )
|
||||
{
|
||||
int i = StringToInt( ScreenTextEntry::s_sLastAnswer );
|
||||
int i = std::stoi( ScreenTextEntry::s_sLastAnswer );
|
||||
GAMESTATE->m_pCurSteps[PLAYER_1]->SetMeter(i);
|
||||
SetDirty( true );
|
||||
}
|
||||
@@ -3376,7 +3376,7 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM )
|
||||
}
|
||||
else if ( SM == SM_BackFromTickcountChange && !ScreenTextEntry::s_bCancelledLast )
|
||||
{
|
||||
int iTick = StringToInt( ScreenTextEntry::s_sLastAnswer );
|
||||
int iTick = std::stoi( ScreenTextEntry::s_sLastAnswer );
|
||||
|
||||
if ( iTick >= 0 && iTick <= ROWS_PER_BEAT )
|
||||
GetAppropriateTimingForUpdate().AddSegment( TickcountSegment( GetRow(), iTick) );
|
||||
@@ -3441,7 +3441,7 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM )
|
||||
}
|
||||
else
|
||||
{
|
||||
int tmp = StringToInt(ScreenTextEntry::s_sLastAnswer );
|
||||
int tmp = std::stoi(ScreenTextEntry::s_sLastAnswer );
|
||||
|
||||
SpeedSegment::BaseUnit unit = (tmp == 0 ) ?
|
||||
SpeedSegment::UNIT_BEATS : SpeedSegment::UNIT_SECONDS;
|
||||
@@ -4091,7 +4091,7 @@ static void ChangeStepCredit( const RString &sNew )
|
||||
|
||||
static void ChangeStepMeter( const RString &sNew )
|
||||
{
|
||||
int diff = StringToInt(sNew);
|
||||
int diff = std::stoi(sNew);
|
||||
GAMESTATE->m_pCurSteps[PLAYER_1]->SetMeter(max(diff, 1));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user