aboutsummaryrefslogtreecommitdiff
path: root/src/mineral.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mineral.cpp')
-rw-r--r--src/mineral.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mineral.cpp b/src/mineral.cpp
index c333ae6f5..905f6497c 100644
--- a/src/mineral.cpp
+++ b/src/mineral.cpp
@@ -27,7 +27,8 @@ const char *mineral_filenames[MINERAL_COUNT] =
"mineral_iron.png"
};
-textureid_t mineral_textures[MINERAL_COUNT] = {0};
+//textureid_t mineral_textures[MINERAL_COUNT] = {0};
+std::string mineral_textures[MINERAL_COUNT];
void init_mineral(IIrrlichtWrapper *irrlicht)
{
@@ -35,14 +36,17 @@ void init_mineral(IIrrlichtWrapper *irrlicht)
{
if(mineral_filenames[i] == NULL)
continue;
- mineral_textures[i] = irrlicht->getTextureId(mineral_filenames[i]);
+ //mineral_textures[i] = irrlicht->getTextureId(mineral_filenames[i]);
+ //mineral_textures[i] = 0;
+ mineral_textures[i] = mineral_filenames[i];
}
}
-textureid_t mineral_block_texture(u8 mineral)
+//textureid_t mineral_block_texture(u8 mineral)
+std::string mineral_block_texture(u8 mineral)
{
if(mineral >= MINERAL_COUNT)
- return 0;
+ return "";
return mineral_textures[mineral];
}