0

Merge github.com:interfect/Minecraft-Overviewer

This commit is contained in:
Adam Novak
2012-04-25 00:03:24 -07:00

View File

@@ -17,25 +17,18 @@
#include "../overviewer.h" #include "../overviewer.h"
typedef struct {
} PrimitiveNoFluids;
static int static int
no_fluids_start(void *data, RenderState *state, PyObject *support) { no_fluids_start(void *data, RenderState *state, PyObject *support) {
PrimitiveNoFluids *self = (PrimitiveNoFluids *)data;
return 0; return 0;
} }
static int static int
no_fluids_hidden(void *data, RenderState *state, int x, int y, int z) { no_fluids_hidden(void *data, RenderState *state, int x, int y, int z) {
PrimitiveNoFluids *self = (PrimitiveNoFluids *)data; return block_has_property(state->block, FLUID);
return !block_has_property(state->block, FLUID);
} }
RenderPrimitiveInterface primitive_no_fluids = { RenderPrimitiveInterface primitive_no_fluids = {
"no-fluids", sizeof(PrimitiveNoFluids), "no-fluids", 0,
no_fluids_start, no_fluids_start,
NULL, NULL,
NULL, NULL,