mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-05-01 01:21:41 -04:00
#77, fixed newly added house will add ally with GDI or Nod .
This commit is contained in:
parent
9a28ce5e27
commit
c15d5be1c5
1 changed files with 6 additions and 7 deletions
|
@ -356,22 +356,21 @@ void CHouses::AddHouse(const CString& name)
|
|||
side = rules.GetString(TranslateHouse(dlg.m_Country), "Side");
|
||||
#endif
|
||||
|
||||
if (strstr(name, "Nod") != NULL) {
|
||||
if (name.Find("Nod") >= 0) {
|
||||
#ifndef RA2_MODE
|
||||
ini.sections[translatedHouseName].values["Side"] = "Nod";
|
||||
#endif
|
||||
ini.SetString(translatedHouseName, "Color", "DarkRed");
|
||||
if (name != "Nod") {
|
||||
ini.SetString(name, "Allies", ini.GetString(name, "Allies") + ",Nod");
|
||||
}
|
||||
#endif
|
||||
ini.SetString(translatedHouseName, "Color", "DarkRed");
|
||||
} else {
|
||||
#ifndef RA2_MODE
|
||||
ini.sections[translatedHouseName].values["Side"] = "GDI";
|
||||
#endif
|
||||
ini.SetString(translatedHouseName, "Color", "Gold");
|
||||
if (name != "GDI") {
|
||||
ini.SetString(translatedHouseName, "Allies", ini.GetString(translatedHouseName, "Allies") + ",GDI");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
ini.SetString(translatedHouseName, "Color", "Gold");
|
||||
}
|
||||
ini.SetInteger(translatedHouseName, "Credits", 0);
|
||||
#ifndef RA2_MODE
|
||||
|
|
Loading…
Add table
Reference in a new issue