v0.3:
- 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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user