restore music at startup
This commit is contained in:
parent
a1644cad29
commit
2c5fdc88d1
|
@ -39,7 +39,7 @@ function Client.init()
|
||||||
addEvent(function()
|
addEvent(function()
|
||||||
scheduleEvent(function()
|
scheduleEvent(function()
|
||||||
-- Play startup music (The Silver Tree, by Mattias Westlund)
|
-- Play startup music (The Silver Tree, by Mattias Westlund)
|
||||||
--g_sounds.playMusic("startup.ogg", 3)
|
g_sounds.playMusic("startup.ogg", 3)
|
||||||
connect(g_game, { onGameStart = function() g_sounds.stopMusic(3) end })
|
connect(g_game, { onGameStart = function() g_sounds.stopMusic(3) end })
|
||||||
connect(g_game, { onGameEnd= function() g_sounds.playMusic("startup.ogg", 3) end })
|
connect(g_game, { onGameEnd= function() g_sounds.playMusic("startup.ogg", 3) end })
|
||||||
end, 100)
|
end, 100)
|
||||||
|
|
Loading…
Reference in New Issue