Skip to content

Commit

Permalink
wait nevermind just read/write them as ints instead
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 3, 2017
1 parent de6e19e commit d34bfe0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/NotesLoaderSSC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ void SetRadarValues(StepsTagInfo& info)
{
for(size_t i= 0; i < cats_per_player; ++i)
{
v[pn][i]= StringToFloat(values[pn * cats_per_player + i]);
v[pn][i]= StringToInt(values[pn * cats_per_player + i]);
}
}
info.steps->SetCachedRadarValues(v);
Expand Down Expand Up @@ -630,7 +630,7 @@ struct ssc_parser_helper_t
steps_tag_handlers["DESCRIPTION"]= &SetDescription;
steps_tag_handlers["DIFFICULTY"]= &SetDifficulty;
steps_tag_handlers["METER"]= &SetMeter;
//steps_tag_handlers["RADARVALUES"]= &SetRadarValues;
steps_tag_handlers["RADARVALUES"]= &SetRadarValues;
steps_tag_handlers["CREDIT"]= &SetCredit;
steps_tag_handlers["MUSIC"]= &SetStepsMusic;
steps_tag_handlers["BPMS"]= &SetStepsBPMs;
Expand Down
4 changes: 2 additions & 2 deletions src/NotesWriterSSC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,10 @@ static RString GetSSCNoteData( const Song &song, const Steps &in, bool bSavingCa
const RadarValues &rv = in.GetRadarValues(pn);
FOREACH_ENUM(RadarCategory, rc)
{
asRadarValues.push_back(ssprintf("%.6f", rv[rc]));
asRadarValues.push_back(ssprintf("%i", rv[rc]));
}
}
//lines.push_back(ssprintf("#RADARVALUES:%s;", join(",", asRadarValues).c_str()));
lines.push_back(ssprintf("#RADARVALUES:%s;", join(",", asRadarValues).c_str()));

push_back_tag(lines, "#CREDIT:%s;", in.GetCredit());

Expand Down

0 comments on commit d34bfe0

Please sign in to comment.