Handle RA with GoodGuy/BadGuy players
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#region Copyright & License Information
|
#region Copyright & License Information
|
||||||
/*
|
/*
|
||||||
* Copyright 2007-2011 The OpenRA Developers (see AUTHORS)
|
* Copyright 2007-2011 The OpenRA Developers (see AUTHORS)
|
||||||
* This file is part of OpenRA, which is free software. It is made
|
* This file is part of OpenRA, which is free software. It is made
|
||||||
@@ -162,7 +162,7 @@ namespace OpenRA.Editor
|
|||||||
LoadSmudges(file, "SMUDGE");
|
LoadSmudges(file, "SMUDGE");
|
||||||
|
|
||||||
foreach (var p in Players)
|
foreach (var p in Players)
|
||||||
LoadPlayer(file, p);
|
LoadPlayer(file, p, (legacyMapFormat == IniMapFormat.RedAlert));
|
||||||
|
|
||||||
var wps = file.GetSection("Waypoints")
|
var wps = file.GetSection("Waypoints")
|
||||||
.Where(kv => int.Parse(kv.Value) > 0)
|
.Where(kv => int.Parse(kv.Value) > 0)
|
||||||
@@ -412,7 +412,7 @@ namespace OpenRA.Editor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LoadPlayer(IniFile file, string section)
|
void LoadPlayer(IniFile file, string section, bool isRA)
|
||||||
{
|
{
|
||||||
string c;
|
string c;
|
||||||
string race;
|
string race;
|
||||||
@@ -451,12 +451,12 @@ namespace OpenRA.Editor
|
|||||||
race = "allies";
|
race = "allies";
|
||||||
break;
|
break;
|
||||||
case "GoodGuy":
|
case "GoodGuy":
|
||||||
c = "gold";
|
c = isRA? "blue" : "gold";
|
||||||
race = "gdi";
|
race = isRA ? "allies" : "gdi";
|
||||||
break;
|
break;
|
||||||
case "BadGuy":
|
case "BadGuy":
|
||||||
c = "red";
|
c = "red";
|
||||||
race = "nod";
|
race = isRA ? "soviet" : "nod";
|
||||||
break;
|
break;
|
||||||
case "Neutral":
|
case "Neutral":
|
||||||
c = "neutral";
|
c = "neutral";
|
||||||
|
|||||||
Reference in New Issue
Block a user