aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-01-28 01:56:58 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-01-28 01:56:58 +0200
commit364c9612008e5c4d1738156764cad650d514883b (patch)
treeb1ba0be562732672a373bfc818acdd0630ae8ba3 /src
parent64b59757322e29c331c0a75262baec4382673e6f (diff)
downloadminetest-364c9612008e5c4d1738156764cad650d514883b.tar.gz
minetest-364c9612008e5c4d1738156764cad650d514883b.tar.bz2
minetest-364c9612008e5c4d1738156764cad650d514883b.zip
server might build now
Diffstat (limited to 'src')
-rw-r--r--src/mineral.cpp4
-rw-r--r--src/mineral.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mineral.cpp b/src/mineral.cpp
index 506f5b75c..4f658db48 100644
--- a/src/mineral.cpp
+++ b/src/mineral.cpp
@@ -19,6 +19,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "mineral.h"
+#ifndef SERVER
+
const char *mineral_filenames[MINERAL_COUNT] =
{
NULL,
@@ -46,4 +48,6 @@ textureid_t mineral_block_texture(u8 mineral)
return mineral_textures[mineral];
}
+#endif
+
diff --git a/src/mineral.h b/src/mineral.h
index aa0902e12..6c10c2256 100644
--- a/src/mineral.h
+++ b/src/mineral.h
@@ -31,8 +31,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
type param.
*/
+#ifndef SERVER
// Caches textures
void init_mineral(IrrlichtWrapper *irrlicht);
+#endif
#define MINERAL_NONE 0
#define MINERAL_COAL 1