Tie local footstep fade ramp to movement cooldown

This commit is contained in:
Jage9
2026-02-22 19:43:15 -05:00
parent b02be51910
commit d504e18771
2 changed files with 2 additions and 2 deletions

View File

@@ -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);