Skip to content

Commit

Permalink
music player tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Damgam committed Mar 26, 2024
1 parent f40a24f commit 5ae4458
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions luaui/Widgets/gui_advplayerslist_music_new.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ local showGUI = true
local minSilenceTime = 30
local maxSilenceTime = 120
local warLowLevel = 1000
local warHighLevel = 30000
local warMeterResetTime = 60 -- seconds
local warHighLevel = 40000
local warMeterResetTime = 30 -- seconds
local interruptionMinimumTime = 20 -- seconds
local interruptionMaximumTime = 40 -- seconds
local interruptionMaximumTime = 60 -- seconds

----------------------------------------------------------------------
----------------------------------------------------------------------
Expand Down Expand Up @@ -1094,7 +1094,7 @@ function widget:UnitFinished()
end

function widget:UnitDestroyed(unitID, unitDefID, unitTeam)
if unitTeam == Spring.GetMyTeamID() and UnitDefs[unitDefID].name == "boombox" then
if unitTeam == Spring.GetMyTeamID() and UnitDefs[unitDefID].name == "boombox" and (not appliedSpectatorThresholds) then
currentTrack = boomboxTracks[boomboxTracksPlayCounter]
boomboxTracksPlayCounter = boomboxTracksPlayCounter + 1
if not boomboxTracks[boomboxTracksPlayCounter] then
Expand Down

0 comments on commit 5ae4458

Please sign in to comment.