mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 13:10:42 +00:00
Shuffle playlist order (#612)
## Description: ## Please complete the following: - [x] I have added screenshots for all UI updates - [ ] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Please put your Discord username so you can be contacted if a bug or regression is found: fake.neo Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
This commit is contained in:
@@ -58,9 +58,9 @@ export class MapPlaylist {
|
||||
count--;
|
||||
}
|
||||
});
|
||||
while (!this.allNonConsecutive(mapsPlaylist)) {
|
||||
do {
|
||||
random.shuffleArray(mapsPlaylist);
|
||||
}
|
||||
} while (!this.allNonConsecutive(mapsPlaylist));
|
||||
}
|
||||
|
||||
// Specifically controls how the playlists rotate.
|
||||
|
||||
Reference in New Issue
Block a user