server might build now
authorPerttu Ahola <celeron55@gmail.com>
Thu, 27 Jan 2011 23:56:58 +0000 (01:56 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Thu, 27 Jan 2011 23:56:58 +0000 (01:56 +0200)
src/mineral.cpp
src/mineral.h

index 506f5b75c4ef067d00c6e4f792eb459e5a7ea623..4f658db48de09ffd0a673081885111e35816ec8d 100644 (file)
@@ -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
+
 
index aa0902e122b8dc1ba6a69cbbfff4c39e9563c33d..6c10c2256ef3160a52b51e0ca1f878befcf47c5a 100644 (file)
@@ -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