Use Sound.PlayMusic for Hell March
This commit is contained in:
@@ -34,8 +34,6 @@ namespace OpenRA.Mods.RA.Missions
|
|||||||
Player allies;
|
Player allies;
|
||||||
Player soviets;
|
Player soviets;
|
||||||
|
|
||||||
ISound music;
|
|
||||||
|
|
||||||
Actor insertionLZ;
|
Actor insertionLZ;
|
||||||
Actor extractionLZ;
|
Actor extractionLZ;
|
||||||
Actor lab;
|
Actor lab;
|
||||||
@@ -266,7 +264,7 @@ namespace OpenRA.Mods.RA.Missions
|
|||||||
attackEntryPoint1 = actors["SovietAttackEntryPoint1"];
|
attackEntryPoint1 = actors["SovietAttackEntryPoint1"];
|
||||||
attackEntryPoint2 = actors["SovietAttackEntryPoint2"];
|
attackEntryPoint2 = actors["SovietAttackEntryPoint2"];
|
||||||
Game.MoveViewport(insertionLZ.Location.ToFloat2());
|
Game.MoveViewport(insertionLZ.Location.ToFloat2());
|
||||||
music = Sound.Play("hell226m.aud"); // Hell March
|
Sound.PlayMusic(Rules.Music["hell226m"]); // Hell March
|
||||||
Game.ConnectionStateChanged += StopMusic;
|
Game.ConnectionStateChanged += StopMusic;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -274,7 +272,7 @@ namespace OpenRA.Mods.RA.Missions
|
|||||||
{
|
{
|
||||||
if (!orderManager.GameStarted)
|
if (!orderManager.GameStarted)
|
||||||
{
|
{
|
||||||
Sound.StopSound(music);
|
Sound.StopMusic();
|
||||||
Game.ConnectionStateChanged -= StopMusic;
|
Game.ConnectionStateChanged -= StopMusic;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user