Fix issueing superfluous difficulty lobby command from mission browser
This commit is contained in:
committed by
Paul Chote
parent
e57f1dcd8c
commit
1927b88a18
@@ -374,11 +374,12 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
if (selectedMap.InvalidCustomRules)
|
||||
return;
|
||||
|
||||
var orders = new[] {
|
||||
Order.Command("option gamespeed {0}".F(gameSpeed)),
|
||||
Order.Command("option difficulty {0}".F(difficulty)),
|
||||
Order.Command("state {0}".F(Session.ClientState.Ready))
|
||||
};
|
||||
var orders = new List<Order>();
|
||||
if (difficulty != null)
|
||||
orders.Add(Order.Command("option difficulty {0}".F(difficulty)));
|
||||
|
||||
orders.Add(Order.Command("option gamespeed {0}".F(gameSpeed)));
|
||||
orders.Add(Order.Command("state {0}".F(Session.ClientState.Ready)));
|
||||
|
||||
var missionData = selectedMap.Rules.Actors["world"].TraitInfoOrDefault<MissionDataInfo>();
|
||||
if (missionData != null && missionData.StartVideo != null && modData.DefaultFileSystem.Exists(missionData.StartVideo))
|
||||
|
||||
Reference in New Issue
Block a user