Don't allow setting the meter to < 1.
This commit is contained in:
+15
-1
@@ -4062,6 +4062,17 @@ static void ChangeStepCredit( const RString &sNew )
|
|||||||
pSteps->SetCredit(sNew);
|
pSteps->SetCredit(sNew);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void ChangeStepMeter( const RString &sNew )
|
||||||
|
{
|
||||||
|
int diff = StringToInt(sNew);
|
||||||
|
// TODO: What's the clamping function again, and what's our max level?
|
||||||
|
if (diff < 1)
|
||||||
|
{
|
||||||
|
diff = 1;
|
||||||
|
}
|
||||||
|
GAMESTATE->m_pCurSteps[PLAYER_1]->SetMeter(diff);
|
||||||
|
}
|
||||||
|
|
||||||
static void ChangeMainTitle( const RString &sNew )
|
static void ChangeMainTitle( const RString &sNew )
|
||||||
{
|
{
|
||||||
Song* pSong = GAMESTATE->m_pCurSong;
|
Song* pSong = GAMESTATE->m_pCurSong;
|
||||||
@@ -5091,7 +5102,10 @@ void ScreenEdit::HandleStepsInformationChoice( StepsInformationChoice c, const v
|
|||||||
ScreenTextEntry::TextEntry(SM_BackFromDifficultyMeterChange,
|
ScreenTextEntry::TextEntry(SM_BackFromDifficultyMeterChange,
|
||||||
ENTER_NEW_METER,
|
ENTER_NEW_METER,
|
||||||
ssprintf("%d", m_pSteps->GetMeter()),
|
ssprintf("%d", m_pSteps->GetMeter()),
|
||||||
4);
|
4,
|
||||||
|
NULL,
|
||||||
|
ChangeStepMeter,
|
||||||
|
NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case step_min_bpm:
|
case step_min_bpm:
|
||||||
|
|||||||
Reference in New Issue
Block a user