fix Course.cpp for 5_1-new

random_up_to() was written for SM5.2 and RageUtil's RandomInt() seems
a suitable replacement for 5_1-new.
This commit is contained in:
quietly turning
2020-06-07 20:09:37 -04:00
parent f49229809d
commit 3ba2b8ba54
+1 -1
View File
@@ -750,7 +750,7 @@ void Course::GetTrailUnsortedEndless( const vector<CourseEntry> &entries, Trail
CourseSortSongs(e->songSort, vpSongs, rnd);
resolved.pSong = vpSongs[e->iChooseIndex];
const vector<Steps*>& songSteps = songStepMap[resolved.pSong];
resolved.pSteps = songSteps[random_up_to(rnd, songSteps.size())];
resolved.pSteps = songSteps[RandomInt(songSteps.size())];
lastSongSelected = resolved.pSong;
alreadySelected.emplace(resolved.pSong);