only add Neutral player if it doesnt exist in the map definition.

This commit is contained in:
Chris Forbes
2011-02-28 22:46:24 +13:00
parent 8aaaf1e44c
commit 772b3a2f9d
2 changed files with 6 additions and 2 deletions

View File

@@ -377,6 +377,7 @@ namespace OpenRA.Editor
using (var eld = new ErrorListDialog(errors))
eld.ShowDialog();
if (!map.Players.ContainsKey("Neutral"))
map.Players.Add("Neutral", new PlayerReference("Neutral",
Rules.Info["world"].Traits.WithInterface<CountryInfo>().First().Race, true, true));

View File

@@ -90,6 +90,9 @@
<DependentUpon>PropertiesDialog.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="ErrorListDialog.resx">
<DependentUpon>ErrorListDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>