Pause the game when users navigate to the options menu in SP mode
This commit is contained in:
@@ -306,7 +306,7 @@ namespace OpenRA.Mods.RA.Missions
|
||||
|
||||
Game.MoveViewport(insertionLZ.Location.ToFloat2());
|
||||
|
||||
if (MissionUtils.IsSingleClient(world))
|
||||
if (w.LobbyInfo.IsSinglePlayer)
|
||||
Media.PlayFMVFullscreen(w, "ally1.vqa", () =>
|
||||
Media.PlayFMVFullscreen(w, "landing.vqa", () =>
|
||||
{
|
||||
|
||||
@@ -121,11 +121,6 @@ namespace OpenRA.Mods.RA.Missions
|
||||
return world.Actors.FirstOrDefault(a => a.HasTrait<Cargo>() && a.Trait<Cargo>().Passengers.Contains(actor));
|
||||
}
|
||||
|
||||
public static bool IsSingleClient(World world)
|
||||
{
|
||||
return world.LobbyInfo.Clients.Count() == 1;
|
||||
}
|
||||
|
||||
public static void PlayMissionMusic()
|
||||
{
|
||||
if (!Rules.InstalledMusic.Any()) return;
|
||||
|
||||
@@ -160,7 +160,7 @@ namespace OpenRA.Mods.RA.Missions
|
||||
|
||||
Game.MoveViewport(startJeep.Location.ToFloat2());
|
||||
|
||||
if (MissionUtils.IsSingleClient(world))
|
||||
if (w.LobbyInfo.IsSinglePlayer)
|
||||
{
|
||||
Media.PlayFMVFullscreen(w, "soviet1.vqa", () =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user