fixing mapchange trigger; also paint the power bar in the right place again (LineRenderer is still in worldspace)

This commit is contained in:
Chris Forbes
2010-01-16 20:58:08 +13:00
parent 2b72a89779
commit 950a2acb0b
3 changed files with 11 additions and 16 deletions

View File

@@ -20,8 +20,12 @@ namespace OpenRa.Game
public static float Fraction { get; private set; }
public static int DownloadedBytes { get { return (int)content.Length; } }
public static void SetPackageList(string[] packages)
public static bool SetPackageList(string[] packages)
{
if (!(allPackages.Except(packages).Any()
|| packages.Except(allPackages).Any()))
return false;
allPackages = packages;
missingPackages = allPackages.Where(p => !HavePackage(p)).ToList();
@@ -29,6 +33,8 @@ namespace OpenRa.Game
BeginDownload();
else
missingPackages.Remove(currentPackage);
return true;
}
class Chunk { public int Index = 0; public int Count = 0; public string Data = ""; }