From b83168cfbf3d99738191324a4e249b5cacb00479 Mon Sep 17 00:00:00 2001 From: elexis Date: Fri, 4 Nov 2016 12:18:11 +0000 Subject: [PATCH] Revert 9846f374a0 as it doesn't work with the packaged version, refs #4313, because that comes with DDS files instead of PNGs and FileExists does not translate that like the sprite attribute does. This was SVN commit r18905. --- binaries/data/mods/public/gui/common/gamedescription.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/binaries/data/mods/public/gui/common/gamedescription.js b/binaries/data/mods/public/gui/common/gamedescription.js index 8b5850186f..0c1d07a943 100644 --- a/binaries/data/mods/public/gui/common/gamedescription.js +++ b/binaries/data/mods/public/gui/common/gamedescription.js @@ -31,10 +31,9 @@ function getMapDescriptionAndPreview(mapType, mapName) */ function setMapPreviewImage(guiObject, filename) { - let path = "session/icons/mappreview/"; Engine.GetGUIObjectByName(guiObject).sprite = "cropped:" + 400/512 + "," + 300/512 + ":" + - path + (Engine.FileExists("art/textures/ui/" + path + filename) ? filename : "nopreview.png"); + "session/icons/mappreview/" + filename; } /**