- Launcher checks whether a patch is newer than the current version instead of going through the patches until the current version is found
- CharacterHUD is drawn under crew commander and other UI elements
- All structures other than the command room windows are restored to full health in tutorial
- Longer cooldown for moloch attacks
- AIObjectiveCombat always overrides current order
This commit is contained in:
Regalis
2016-01-23 14:37:00 +02:00
parent c78784068c
commit 7098a9a5e0
17 changed files with 106 additions and 28 deletions
+11 -2
View File
@@ -398,11 +398,17 @@ namespace Launcher2
return false;
}
string latestVersion = ToolBox.GetAttributeString(doc.Root, "latestversion", "");
Version currentVersion = new Version(version);
string latestVersionStr = ToolBox.GetAttributeString(doc.Root, "latestversion", "");
latestVersionFolder = ToolBox.GetAttributeString(doc.Root, "latestversionfolder", "");
latestVersionFileList = ToolBox.GetAttributeString(doc.Root, "latestversionfilelist", "");
if (latestVersion == version)
Version latestVersion = new Version(latestVersionStr);
if (currentVersion.CompareTo(latestVersion) >= 0)
{
updateInfoText.Text = "Game is up to date!";
return false;
@@ -427,6 +433,9 @@ namespace Launcher2
//read the patch notes until we reach the user's version
if (patchNumber == version) break;
Version patchVersion = new Version(patchNumber);
if (currentVersion.CompareTo(patchVersion) >= 0) break;
string innerText = ToolBox.ElementInnerText(patchNote);
innerText = innerText.Replace("\r\n", "\n");