Fixed map-icons.

This commit is contained in:
FrozenCow 2011-03-05 17:42:07 +01:00
parent 8d70839d3b
commit a4564889df
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ web:
# title: Surface # The name of the map that will be displayed. # 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). # 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. # 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 # - type: KzedMapType
# title: Cave # title: Cave
# name: cave # name: cave

View File

@ -158,7 +158,7 @@ DynMap.prototype = {
.append($('<a/>') .append($('<a/>')
.attr({ title: map.title, href: '#' }) .attr({ title: map.title, href: '#' })
.addClass('maptype') .addClass('maptype')
.css({ backgroundImage: 'url(' + (map.icon || 'block_' + map.name + '.png') + ')' }) .css({ backgroundImage: 'url(' + (map.icon || 'images/block_' + map.name + '.png') + ')' })
.text(map.title) .text(map.title)
) )
.click(function() { .click(function() {