Make all uses of the Steps* in the TrailEntry class use an accessor method.

This makes it simple to switch to something else, such as using a StepsId
instead of a Steps*.
This commit is contained in:
John Bauer
2006-11-10 05:04:09 +00:00
parent 2c14373639
commit 5d2bf93725
7 changed files with 24 additions and 11 deletions
+2 -2
View File
@@ -349,7 +349,7 @@ bool Course::GetTrailSorted( StepsType st, CourseDifficulty cd, Trail &trail ) c
{
SortTrailEntry ste;
ste.entry = trail.m_vEntries[i];
ste.SortMeter = SortTrail.m_vEntries[i].pSteps->GetMeter();
ste.SortMeter = SortTrail.m_vEntries[i].GetSteps()->GetMeter();
entries.push_back( ste );
}
@@ -567,7 +567,7 @@ bool Course::GetTrailUnsorted( StepsType st, CourseDifficulty cd, Trail &trail )
TrailEntry te;
te.pSong = resolved.pSong;
te.pSteps = resolved.pSteps;
te.SetSteps(resolved.pSteps);
te.Modifiers = e->sModifiers;
te.Attacks = e->attacks;
te.bSecret = e->bSecret;