Skip to content

Commit

Permalink
operationTypeとsoundTypeの混同を防止
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Nov 26, 2023
1 parent 3a9e671 commit 2672874
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/frontend/src/scripts/sound.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ export async function loadAudio(soundStore: SoundStore, options?: { useCache?: b
* 既定のスプライトを再生する
* @param type スプライトの種類を指定
*/
export function play(type: OperationType) {
const sound = defaultStore.state[`sound_${type}`];
if (_DEV_) console.log('play', type, sound);
export function play(operationType: OperationType) {
const sound = defaultStore.state[`sound_${operationType}`];
if (_DEV_) console.log('play', operationType, sound);
if (sound.type == null || !canPlay) return;

canPlay = false;
Expand Down

0 comments on commit 2672874

Please sign in to comment.