Merge pull request #5860 from pchote/news-fix

News fixes
This commit is contained in:
Matthias Mailänder
2014-07-07 13:25:25 +02:00
7 changed files with 49 additions and 72 deletions

View File

@@ -35,7 +35,6 @@ namespace OpenRA
public readonly InstallData ContentInstaller;
public readonly Dictionary<string, Pair<string, int>> Fonts;
public readonly Size TileSize = new Size(24, 24);
public readonly string NewsUrl;
public readonly TileShape TileShape = TileShape.Rectangle;
public Manifest(string mod)
@@ -97,9 +96,6 @@ namespace OpenRA
compat.Add(c.Trim());
MapCompatibility = compat.ToArray();
if (yaml.ContainsKey("NewsUrl"))
NewsUrl = yaml["NewsUrl"].Value;
}
static string[] YamlList(Dictionary<string, MiniYaml> yaml, string key)

View File

@@ -141,6 +141,7 @@ namespace OpenRA
public string MapRepository = "http://resource.openra.net/map/";
public bool FetchNews = true;
public string NewsUrl = "http://www.openra.net/gamenews";
public DateTime NewsFetchedDate;
}