diff --git a/mist.lua b/mist.lua index ad5c6d8..2188181 100644 --- a/mist.lua +++ b/mist.lua @@ -35,7 +35,7 @@ mist = {} -- don't change these mist.majorVersion = 4 mist.minorVersion = 4 -mist.build = 85 +mist.build = 86 -- forward declaration of log shorthand local log @@ -1271,8 +1271,10 @@ do -- the main scope mistUnitId = mistUnitId + 1 newObj.unitId = mistUnitId end + + + newObj.name = newObj.name or newObj.unitName - newObj.name = newObj.unitName if newObj.clone or not newObj.name then mistDynAddIndex[' static '] = mistDynAddIndex[' static '] + 1 newObj.name = (newCountry .. ' static ' .. mistDynAddIndex[' static ']) diff --git a/mist_4_4_85.lua b/mist_4_4_86.lua similarity index 99% rename from mist_4_4_85.lua rename to mist_4_4_86.lua index 2e775f8..2188181 100644 --- a/mist_4_4_85.lua +++ b/mist_4_4_86.lua @@ -35,7 +35,7 @@ mist = {} -- don't change these mist.majorVersion = 4 mist.minorVersion = 4 -mist.build = 85 +mist.build = 86 -- forward declaration of log shorthand local log @@ -1271,8 +1271,10 @@ do -- the main scope mistUnitId = mistUnitId + 1 newObj.unitId = mistUnitId end + + + newObj.name = newObj.name or newObj.unitName - newObj.name = newObj.unitName if newObj.clone or not newObj.name then mistDynAddIndex[' static '] = mistDynAddIndex[' static '] + 1 newObj.name = (newCountry .. ' static ' .. mistDynAddIndex[' static ']) @@ -6935,7 +6937,7 @@ do -- group tasks scope elseif type(terrainTypes) == 'table' then -- if its a table it does this check for typeId, typeData in pairs(terrainTypes) do for constId, constData in pairs(land.SurfaceType) do - if string.lower(constId) == string.lower(typeData) or string.lower(constData) == string.lower(typeId) then + if string.lower(constId) == string.lower(typeData) or string.lower(constData) == string.lower(typeData) then table.insert(typeConverted, constId) end end