From d504e187714945f4ef3648affa6faf69ecb4bcf2 Mon Sep 17 00:00:00 2001 From: Jage9 Date: Sun, 22 Feb 2026 19:43:15 -0500 Subject: [PATCH] Tie local footstep fade ramp to movement cooldown --- client/public/version.js | 2 +- client/src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/public/version.js b/client/public/version.js index 9e5b263..23bafed 100644 --- a/client/public/version.js +++ b/client/public/version.js @@ -1,5 +1,5 @@ // Maintainer-controlled web client version. // Format: YYYY.MM.DD Rn (example: 2026.02.20 R2) -window.CHGRID_WEB_VERSION = "2026.02.22 R177"; +window.CHGRID_WEB_VERSION = "2026.02.22 R178"; // Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid. window.CHGRID_TIME_ZONE = "America/Detroit"; diff --git a/client/src/main.ts b/client/src/main.ts index 7f462a7..c847aaa 100644 --- a/client/src/main.ts +++ b/client/src/main.ts @@ -1104,7 +1104,7 @@ function handleMovement(): void { persistPlayerPosition(); state.player.lastMoveTime = now; void refreshAudioSubscriptions(true); - void audio.playSample(randomFootstepUrl(), FOOTSTEP_GAIN, 100); + void audio.playSample(randomFootstepUrl(), FOOTSTEP_GAIN, MOVE_COOLDOWN_MS); signaling.send({ type: 'update_position', x: nextX, y: nextY }); const namesOnTile = getPeerNamesAtPosition(nextX, nextY);