From 48f153ed47013252209e39500ce3eb6ed75d762d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Tue, 31 Dec 2013 18:17:28 +0100 Subject: [PATCH] default to filename instead of "(null)" when the map has no name --- OpenRA.Utility/LegacyMapImporter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Utility/LegacyMapImporter.cs b/OpenRA.Utility/LegacyMapImporter.cs index 640c676c48..75cbb4fa28 100644 --- a/OpenRA.Utility/LegacyMapImporter.cs +++ b/OpenRA.Utility/LegacyMapImporter.cs @@ -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;