only add Neutral player if it doesnt exist in the map definition.
This commit is contained in:
@@ -377,6 +377,7 @@ namespace OpenRA.Editor
|
|||||||
using (var eld = new ErrorListDialog(errors))
|
using (var eld = new ErrorListDialog(errors))
|
||||||
eld.ShowDialog();
|
eld.ShowDialog();
|
||||||
|
|
||||||
|
if (!map.Players.ContainsKey("Neutral"))
|
||||||
map.Players.Add("Neutral", new PlayerReference("Neutral",
|
map.Players.Add("Neutral", new PlayerReference("Neutral",
|
||||||
Rules.Info["world"].Traits.WithInterface<CountryInfo>().First().Race, true, true));
|
Rules.Info["world"].Traits.WithInterface<CountryInfo>().First().Race, true, true));
|
||||||
|
|
||||||
|
|||||||
@@ -90,6 +90,9 @@
|
|||||||
<DependentUpon>PropertiesDialog.cs</DependentUpon>
|
<DependentUpon>PropertiesDialog.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<EmbeddedResource Include="ErrorListDialog.resx">
|
||||||
|
<DependentUpon>ErrorListDialog.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Form1.resx">
|
<EmbeddedResource Include="Form1.resx">
|
||||||
<DependentUpon>Form1.cs</DependentUpon>
|
<DependentUpon>Form1.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
|||||||
Reference in New Issue
Block a user