From b1e4b09ab68bfb31e4cdf790ed9bcc3deffeb3d6 Mon Sep 17 00:00:00 2001 From: Adam Novak Date: Tue, 24 Apr 2012 20:35:00 -0700 Subject: [PATCH 1/2] Removing unused struct. --- overviewer_core/src/primitives/no-fluids.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/overviewer_core/src/primitives/no-fluids.c b/overviewer_core/src/primitives/no-fluids.c index 1f6cc16..fe1c704 100644 --- a/overviewer_core/src/primitives/no-fluids.c +++ b/overviewer_core/src/primitives/no-fluids.c @@ -17,25 +17,18 @@ #include "../overviewer.h" -typedef struct { -} PrimitiveNoFluids; - static int no_fluids_start(void *data, RenderState *state, PyObject *support) { - PrimitiveNoFluids *self = (PrimitiveNoFluids *)data; - return 0; } static int no_fluids_hidden(void *data, RenderState *state, int x, int y, int z) { - PrimitiveNoFluids *self = (PrimitiveNoFluids *)data; - return !block_has_property(state->block, FLUID); } RenderPrimitiveInterface primitive_no_fluids = { - "no-fluids", sizeof(PrimitiveNoFluids), + "no-fluids", 0, no_fluids_start, NULL, NULL, From 915aa1a653991f7469a995573a7de5bdc7e4ff47 Mon Sep 17 00:00:00 2001 From: Adam Novak Date: Tue, 24 Apr 2012 20:40:39 -0700 Subject: [PATCH 2/2] Inverting sense of no-fluids to be correct. --- overviewer_core/src/primitives/no-fluids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overviewer_core/src/primitives/no-fluids.c b/overviewer_core/src/primitives/no-fluids.c index fe1c704..cb6428a 100644 --- a/overviewer_core/src/primitives/no-fluids.c +++ b/overviewer_core/src/primitives/no-fluids.c @@ -24,7 +24,7 @@ no_fluids_start(void *data, RenderState *state, PyObject *support) { static int no_fluids_hidden(void *data, RenderState *state, int x, int y, int z) { - return !block_has_property(state->block, FLUID); + return block_has_property(state->block, FLUID); } RenderPrimitiveInterface primitive_no_fluids = {