mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 05:13:39 -07:00
Moved the check for !seqInfo.canBeUsedAsReplacement
in InitializeShufflePool
to exclude them before modifying either shuffle pool. (#3370)
This commit is contained in:
parent
30ab8e9ed7
commit
78ffb41cd2
1 changed files with 2 additions and 1 deletions
|
@ -400,8 +400,9 @@ void AudioCollection::InitializeShufflePool() {
|
||||||
if (shufflePoolInitialized) return;
|
if (shufflePoolInitialized) return;
|
||||||
|
|
||||||
for (auto& [seqId, seqInfo] : sequenceMap) {
|
for (auto& [seqId, seqInfo] : sequenceMap) {
|
||||||
|
if (!seqInfo.canBeUsedAsReplacement) continue;
|
||||||
const std::string cvarKey = "gAudioEditor.Excluded." + seqInfo.sfxKey;
|
const std::string cvarKey = "gAudioEditor.Excluded." + seqInfo.sfxKey;
|
||||||
if (CVarGetInteger(cvarKey.c_str(), 0) && !seqInfo.canBeUsedAsReplacement) {
|
if (CVarGetInteger(cvarKey.c_str(), 0)) {
|
||||||
excludedSequences.insert(&seqInfo);
|
excludedSequences.insert(&seqInfo);
|
||||||
} else {
|
} else {
|
||||||
includedSequences.insert(&seqInfo);
|
includedSequences.insert(&seqInfo);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue