Skip to content

Commit

Permalink
Reorder statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ASleepyCat committed May 12, 2021
1 parent 2315785 commit c5c4bc8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Beatmap/src/BeatmapFromKSH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,7 @@ struct MultiParamRange
static MultiParam ParseParam(const String &in)
{
MultiParam ret;
if (in.find("%") != -1)
{
ret.type = MultiParam::Float;
int percentage = 0;
sscanf(*in, "%i", &percentage);
ret.fval = percentage / 100.0;
}
else if (in.find('/') != -1)
if (in.find('/') != -1)
{
ret.type = MultiParam::Float;
String a, b;
Expand All @@ -217,6 +210,13 @@ static MultiParam ParseParam(const String &in)
ret.type = MultiParam::Samples;
sscanf(*in, "%i", &ret.ival);
}
else if (in.find("%") != -1)
{
ret.type = MultiParam::Float;
int percentage = 0;
sscanf(*in, "%i", &percentage);
ret.fval = percentage / 100.0;
}
else if (in.find('.') != -1)
{
ret.type = MultiParam::Float;
Expand Down

0 comments on commit c5c4bc8

Please sign in to comment.