default to filename instead of "(null)" when the map has no name

This commit is contained in:
Matthias Mailänder
2013-12-31 18:17:28 +01:00
parent c6d9574d52
commit 48f153ed47

View File

@@ -133,7 +133,7 @@ namespace OpenRA.Utility
var height = int.Parse(mapSection.GetValue("Height", "0"));
mapSize = (legacyMapFormat == IniMapFormat.RedAlert) ? 128 : 64;
map.Title = basic.GetValue("Name", "(null)");
map.Title = basic.GetValue("Name", Path.GetFileNameWithoutExtension(iniFile));
map.Author = "Westwood Studios";
map.Tileset = Truncate(mapSection.GetValue("Theater", "TEMPERAT"), 8);
map.MapSize.X = mapSize;