This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
gitlord
/
isleward
mirror of
https://gitlab.com/Isleward/isleward.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
203
Wiki
Activity
Browse Source
bug: Fixed an issue where destroyed sound objects would play again after relog
tags/v0.10.4^2
Shaun
2 years ago
parent
14027befbf
commit
1b70ec99a1
2 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
src/client/js/sound/sound.js
+2
-0
src/server/clientComponents/sound.js
+ 4
- 0
src/client/js/sound/sound.js
View File
@@ -321,6 +321,10 @@ define([
const { player: { x, y } } = window;
this.update(x, y);
},
destroySoundEntry: function (soundEntry) {
this.sounds.spliceWhere(s => s === soundEntry);
}
};
});
+ 2
- 0
src/server/clientComponents/sound.js
View File
@@ -43,6 +43,8 @@ define([
destroy: function () {
if (this.soundEntry?.sound)
this.soundEntry?.sound.stop();
soundManager.destroySoundEntry(this.soundEntry);
}
};
});
Write
Preview
Loading…
Cancel
Save