aboutsummaryrefslogtreecommitdiff
path: root/src/mapnode.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-03 15:59:59 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-03 15:59:59 +0200
commit6bb9de3cc63ea2e8a848ffda222a5e66cb7c5f45 (patch)
treeea99076951a7b9c4464696f6ecf0bca8c1e68eef /src/mapnode.cpp
parent44ce9018dd393ce0c8dad6ae40d26d8c5c656529 (diff)
downloadhax-minetest-server-6bb9de3cc63ea2e8a848ffda222a5e66cb7c5f45.tar.gz
hax-minetest-server-6bb9de3cc63ea2e8a848ffda222a5e66cb7c5f45.zip
a little backwards compatibility with coal
Diffstat (limited to 'src/mapnode.cpp')
-rw-r--r--src/mapnode.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mapnode.cpp b/src/mapnode.cpp
index c5b252d8e..2ba2a2dbf 100644
--- a/src/mapnode.cpp
+++ b/src/mapnode.cpp
@@ -96,9 +96,10 @@ void init_mapnode(IIrrlichtWrapper *irrlicht)
i = CONTENT_COALSTONE;
f = &g_content_features[i];
- f->translate_to = new MapNode(CONTENT_STONE, MINERAL_COAL);
- /*f->setAllTextures(irrlicht->getTextureId("coalstone.png"));
- f->is_ground_content = true;*/
+ //f->translate_to = new MapNode(CONTENT_STONE, MINERAL_COAL);
+ f->setAllTextures(TextureSpec(irrlicht->getTextureId("coal.png"),
+ irrlicht->getTextureId("mineral_coal.png")));
+ f->is_ground_content = true;
i = CONTENT_WOOD;
f = &g_content_features[i];