Skip to content

Commit b24ea54

Browse files
github-actionsClaytonTDM
andcommitted
Format "very quick fix + better audio sys"
Original commit: c7427b8 Co-authored-by: ClaytonTDM <[email protected]>
1 parent c7427b8 commit b24ea54

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

game/images/Zombies/CX/v.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cf5e91734b824b5217c2fde8776526e2b67fdde2
1+
c7427b8b56c3662b4074be3904558114b44d2534

game/js/Cfunction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ window.setTimeout = function (fn, delay, ...args) {
3737
};
3838

3939
window.clearTimeout = function (data) {
40-
if (data && typeof data === 'object' && data.id !== undefined) {
40+
if (data && typeof data === "object" && data.id !== undefined) {
4141
try {
4242
cancelAnimationFrame(data.id);
4343
} catch (e) {

game/js/Custom.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ setInterval(cleanupPlayingSounds, CLEANUP_INTERVAL_MS);
291291
// Main play function
292292
async function PlaySound2(path, loop, name, tag) {
293293
// Resume audio context if suspended (browser autoplay policy)
294-
if (audioContext.state === 'suspended') {
294+
if (audioContext.state === "suspended") {
295295
await audioContext.resume();
296296
}
297297

@@ -305,7 +305,7 @@ async function PlaySound2(path, loop, name, tag) {
305305
}
306306

307307
cleanupPlayingSounds();
308-
308+
309309
// Enforce total sound limit
310310
if (playingSounds.length >= MAX_TOTAL_SOUNDS) {
311311
const oldest = playingSounds.shift();
@@ -353,7 +353,7 @@ async function PlaySound2(path, loop, name, tag) {
353353
tag: tagName,
354354
path: audioPath,
355355
stopped: false,
356-
startTime: audioContext.currentTime
356+
startTime: audioContext.currentTime,
357357
};
358358

359359
// Auto-cleanup when sound ends
@@ -416,7 +416,7 @@ function EditSound2(name, loop = false) {
416416

417417
// Update master volume based on oS.Silence
418418
setInterval(() => {
419-
if (typeof oS !== 'undefined' && masterGain) {
419+
if (typeof oS !== "undefined" && masterGain) {
420420
masterGain.gain.value = oS.Silence ? 0 : 1;
421421
}
422422
}, 100);

0 commit comments

Comments
 (0)