From a4564889dfd226a1b3ec0adb6172214da64649bb Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Sat, 5 Mar 2011 17:42:07 +0100 Subject: [PATCH] Fixed map-icons. --- configuration.txt | 2 +- web/map.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration.txt b/configuration.txt index 442c4e5c..d9421ebc 100755 --- a/configuration.txt +++ b/configuration.txt @@ -106,7 +106,7 @@ web: # title: Surface # The name of the map that will be displayed. # name: surface # The actual name of the map (should be unique for this world). # prefix: t # The prefix of the tile-files that are generated. - # icon: block_other.png # Sets a custom icon for the map. (optional) + # icon: images/block_other.png # Sets a custom icon for the map. (optional) # - type: KzedMapType # title: Cave # name: cave diff --git a/web/map.js b/web/map.js index 27287af9..437112e6 100644 --- a/web/map.js +++ b/web/map.js @@ -158,7 +158,7 @@ DynMap.prototype = { .append($('') .attr({ title: map.title, href: '#' }) .addClass('maptype') - .css({ backgroundImage: 'url(' + (map.icon || 'block_' + map.name + '.png') + ')' }) + .css({ backgroundImage: 'url(' + (map.icon || 'images/block_' + map.name + '.png') + ')' }) .text(map.title) ) .click(function() {