Use Sound.PlayMusic for Hell March

This commit is contained in:
ScottNZ
2012-07-01 03:47:08 +12:00
parent 6014f648f4
commit e02397da3e

View File

@@ -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;
} }
} }