]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/client/terrain_gfx.c
Add items
[dragonblocks_alpha.git] / src / client / terrain_gfx.c
index 258a295cdbd028fab836cb56a8283d4f0350c730..52877d9ae54b493ca5ee6176b4a6561d7656b2b0 100644 (file)
@@ -59,7 +59,7 @@ static ModelShader model_shader;
 
 static inline bool cull_face(NodeType self, NodeType nbr)
 {
-       switch (client_node_definitions[self].visibility) {
+       switch (client_node_defs[self].visibility) {
                case VISIBILITY_CLIP:
                        return false;
 
@@ -69,7 +69,7 @@ static inline bool cull_face(NodeType self, NodeType nbr)
 
                case VISIBILITY_SOLID:
                        return nbr == NODE_UNLOADED
-                               || client_node_definitions[nbr].visibility == VISIBILITY_SOLID;
+                               || client_node_defs[nbr].visibility == VISIBILITY_SOLID;
 
                default: // impossible
                        break;
@@ -85,7 +85,7 @@ static inline void render_node(ChunkRenderData *data, v3s32 offset)
 
        args.node = &data->chunk->data[offset.x][offset.y][offset.z];
 
-       ClientNodeDefinition *def = &client_node_definitions[args.node->type];
+       ClientNodeDef *def = &client_node_defs[args.node->type];
        if (def->visibility == VISIBILITY_NONE)
                return;