mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Fix match sounds after timeout.
This commit is contained in:
@@ -783,6 +783,11 @@ func (arena *Arena) handleEstop(station string, state bool) {
|
||||
}
|
||||
|
||||
func (arena *Arena) handleSounds(matchTimeSec float64) {
|
||||
if arena.MatchState == PreMatch || arena.MatchState == TimeoutActive || arena.MatchState == PostTimeout {
|
||||
// Only apply this logic during a match.
|
||||
return
|
||||
}
|
||||
|
||||
for _, sound := range game.MatchSounds {
|
||||
if sound.MatchTimeSec < 0 {
|
||||
// Skip sounds with negative timestamps; they are meant to only be triggered explicitly.
|
||||
|
||||
Reference in New Issue
Block a user