#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <arpa/inet.h>
#include <unistd.h>
#include <errno.h>
#include <netdb.h>
}
ClientNodeDefintion client_node_definitions[NODE_UNLOADED] = {
- // invalid
+ // unknown
{
- .tiles = TILES_SIMPLE(RESSOURCEPATH "textures/invalid.png"),
+ .tiles = TILES_SIMPLE(RESSOURCEPATH "textures/unknown.png"),
.visibility = NV_SOLID,
.render = NULL,
},
void client_node_init()
{
- for (Node node = NODE_INVALID; node < NODE_UNLOADED; node++) {
+ for (Node node = NODE_UNKNOWN; node < NODE_UNLOADED; node++) {
ClientNodeDefintion *def = &client_node_definitions[node];
if (client_node_definitions[node].visibility != NV_NONE) {
return false;
if (type >= NODE_UNLOADED)
- type = NODE_INVALID;
+ type = NODE_UNKNOWN;
*node = map_node_create(type);
node.type = be32toh(node.type);
if (node.type >= NODE_UNLOADED)
- node.type = NODE_INVALID;
+ node.type = NODE_UNKNOWN;
if (node_definitions[node.type].deserialize)
node_definitions[node.type].deserialize(&node);
#include "util.h"
NodeDefintion node_definitions[NODE_UNLOADED] = {
- // invalid
+ // unknown
{
.solid = true,
.create = NULL,
typedef enum
{
- NODE_INVALID, // Used for unknown nodes received from server (caused by outdated clients)
+ NODE_UNKNOWN, // Used for unknown nodes received from server (caused by outdated clients)
NODE_AIR,
NODE_GRASS,
NODE_DIRT,