Ticket #3553: t3553_remove_unneeded_warning_v1.patch
File t3553_remove_unneeded_warning_v1.patch, 1.0 KB (added by , 9 years ago) |
---|
-
binaries/data/mods/public/gui/common/functions_utility.js
function getMapDescriptionAndPreview(map 152 152 mapData = { "settings": { "Description": translate("A randomly selected map.") } }; 153 153 else if (mapType == "random" && Engine.FileExists(mapName + ".json")) 154 154 mapData = Engine.ReadJSONFile(mapName + ".json"); 155 155 else if (Engine.FileExists(mapName + ".xml")) 156 156 mapData = Engine.LoadMapSettings(mapName + ".xml"); 157 else158 warn(sprintf("Map '%(mapName)s' not found locally.", { "mapName": mapName }));159 157 160 158 return { 161 159 "description": mapData && mapData.settings && mapData.settings.Description ? translate(mapData.settings.Description) : translate("Sorry, no description available."), 162 160 "preview": mapData && mapData.settings && mapData.settings.Preview ? mapData.settings.Preview : "nopreview.png" 163 161 };