Skip to content

Commit

Permalink
Make Settings Menu Better Behaved Around HitSounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Deaod committed Apr 17, 2024
1 parent 53b170e commit 40c32c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/ClientSettings.uc
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ simulated function LoadHitSounds() {
local int i;

for (i = 0; i < arraycount(sHitSound); i++) {
if (sHitSound[i] != "")
if (sHitSound[i] != "" && (sHitSound[i] ~= "none") == false)
LoadedHitSound[i] = Sound(DynamicLoadObject(sHitSound[i], class'Sound', true));
else
LoadedHitSound[i] = none;
Expand Down
2 changes: 1 addition & 1 deletion Classes/IGPlus_SettingsContent.uc
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ function SetUpHitSoundComboBox(IGPlus_ComboBox Cmb) {
Cmb.EditBox.bDelayedNotify = true;
Cmb.Clear();
for (i = 0; i < arraycount(Settings.sHitSound); ++i)
Cmb.AddItem(Settings.sHitSound[i], string(i));
Cmb.AddItem(string(Settings.LoadedHitSound[i]), string(i));
}

function SetUpHitSourceComboBox(IGPlus_ComboBox Cmb) {
Expand Down

0 comments on commit 40c32c7

Please sign in to comment.