Use accessor functions instead of direct calls.

This commit is contained in:
Jason Felds
2011-06-30 02:19:37 -04:00
parent df14721d0f
commit 57e3c2fc80
6 changed files with 49 additions and 17 deletions
+3 -3
View File
@@ -270,7 +270,7 @@ bool SSCLoader::LoadFromSimfile( const RString &sPath, Song &out, bool bFromCach
else if (sValueName == "LASTSECONDHINT")
{
out.specifiedLastSecond = StringToFloat(sParams[1]);
out.SetSpecifiedLastSecond(StringToFloat(sParams[1]));
}
else if( sValueName=="MUSICBYTES" )
@@ -407,13 +407,13 @@ bool SSCLoader::LoadFromSimfile( const RString &sPath, Song &out, bool bFromCach
else if (sValueName=="FIRSTSECOND")
{
if( bFromCache )
out.firstSecond = StringToFloat( sParams[1] );
out.SetFirstSecond(StringToFloat(sParams[1]));
}
else if( sValueName=="LASTSECOND" )
{
if( bFromCache )
out.lastSecond = StringToFloat( sParams[1] );
out.SetLastSecond(StringToFloat(sParams[1]));
}
else if( sValueName=="SONGFILENAME" )