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.
# 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

View File

@ -158,7 +158,7 @@ DynMap.prototype = {
.append($('<a/>')
.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() {