1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-27 17:28:41 +00:00

Change the preprocessor macro that differs server/client builds

This commit is contained in:
sfan5 2024-10-15 15:47:23 +02:00
parent e2ea359925
commit 37095f3e49
45 changed files with 137 additions and 88 deletions

View file

@ -25,7 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <map>
#include "mapnode.h"
#include "nameidmapping.h"
#ifndef SERVER
#if CHECK_CLIENT_BUILD()
#include "client/tile.h"
#include <IMeshManipulator.h>
class Client;
@ -315,7 +315,7 @@ struct ContentFeatures
/*
Cached stuff
*/
#ifndef SERVER
#if CHECK_CLIENT_BUILD()
// 0 1 2 3 4 5
// up down right left back front
TileSpec tiles[6];
@ -351,7 +351,7 @@ struct ContentFeatures
enum NodeDrawType drawtype;
std::string mesh;
#ifndef SERVER
#if CHECK_CLIENT_BUILD()
scene::IMesh *mesh_ptr[24];
video::SColor minimap_color;
#endif
@ -530,7 +530,7 @@ struct ContentFeatures
return itemgroup_get(groups, group);
}
#ifndef SERVER
#if CHECK_CLIENT_BUILD()
void updateTextures(ITextureSource *tsrc, IShaderSource *shdsrc,
scene::IMeshManipulator *meshmanip, Client *client, const TextureSettings &tsettings);
#endif