From 71b44655b724af18abe1565d09f98dac6a42e6a0 Mon Sep 17 00:00:00 2001 From: Jairinho Date: Tue, 1 Mar 2022 18:49:14 -0300 Subject: [PATCH] removing some trash --- chip8/chip8.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chip8/chip8.go b/chip8/chip8.go index 051a986..fe0c6bc 100644 --- a/chip8/chip8.go +++ b/chip8/chip8.go @@ -101,12 +101,10 @@ func (emulator *Emulator) UpdateTimers() { emulator.DT -= 1 } if emulator.ST > 0 { + emulator.ST -= 1 if emulator.StopSound == nil { - _ = 1 emulator.StopSound = emulator.PlaySound(Sound) } - - emulator.ST -= 1 } else { if emulator.StopSound != nil { emulator.StopSound()