Fix case issues like Temperat vs TEMPERAT during map import.
This commit is contained in:
@@ -60,7 +60,8 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
|||||||
var format = GetMapFormatVersion(basic);
|
var format = GetMapFormatVersion(basic);
|
||||||
ValidateMapFormat(format);
|
ValidateMapFormat(format);
|
||||||
|
|
||||||
var tileset = GetTileset(mapSection);
|
// The original game isn't case sensitive, but we are.
|
||||||
|
var tileset = GetTileset(mapSection).ToUpperInvariant();
|
||||||
Map = new Map(modData, modData.DefaultTileSets[tileset], MapSize, MapSize)
|
Map = new Map(modData, modData.DefaultTileSets[tileset], MapSize, MapSize)
|
||||||
{
|
{
|
||||||
Title = basic.GetValue("Name", Path.GetFileNameWithoutExtension(filename)),
|
Title = basic.GetValue("Name", Path.GetFileNameWithoutExtension(filename)),
|
||||||
|
|||||||
Reference in New Issue
Block a user