Ticket #3553: t3553_remove_unneeded_warning_v1.patch

File t3553_remove_unneeded_warning_v1.patch, 1.0 KB (added by elexis, 9 years ago)
  • binaries/data/mods/public/gui/common/functions_utility.js

    function getMapDescriptionAndPreview(map  
    152152        mapData = { "settings": { "Description": translate("A randomly selected map.") } };
    153153    else if (mapType == "random" && Engine.FileExists(mapName + ".json"))
    154154        mapData = Engine.ReadJSONFile(mapName + ".json");
    155155    else if (Engine.FileExists(mapName + ".xml"))
    156156        mapData = Engine.LoadMapSettings(mapName + ".xml");
    157     else
    158         warn(sprintf("Map '%(mapName)s' not found locally.", { "mapName": mapName }));
    159157
    160158    return {
    161159        "description": mapData && mapData.settings && mapData.settings.Description ? translate(mapData.settings.Description) : translate("Sorry, no description available."),
    162160        "preview": mapData && mapData.settings && mapData.settings.Preview ? mapData.settings.Preview : "nopreview.png"
    163161    };