Permalink
Browse files

if loading track ends, pick an peace track

  • Loading branch information...
Damgam committed Sep 13, 2018
1 parent 3fed1ec commit 3998d2c2b0013c297123e392b111cc41350d5935
Showing with 6 additions and 6 deletions.
  1. +6 −6 LuaUI/Widgets_Evo/gui_musicPlayer_Dynamic_Advanced.lua
@@ -624,9 +624,9 @@ function PlayNewTrack()
fadelvl = music_volume_set
warMeter = 0
buildTimer = 450
--elseif Spring.GetGameFrame() == 0 then
--tracks = warTracks
--fadelvl = 0.15
elseif Spring.GetGameFrame() == 0 then
tracks = peaceTracks
fadelvl = music_volume_set
elseif warMeter <= 0 then
if buildTimer > 10 then
tracks = peaceTracks
@@ -689,9 +689,9 @@ function widget:Update(dt)
if Spring.GetGameFrame() >= 1 then
fadelvl = 0
end
--if Spring.GetGameFrame() == 0 then
--PlayNewTrack()
--end
if Spring.GetGameFrame() == 0 then
PlayNewTrack()
end
if gameOver then
PlayNewTrack()
end

0 comments on commit 3998d2c

Please sign in to comment.