Skip to content
Permalink
Browse files

primitives: misc char -> short fixes

  • Loading branch information...
CounterPillow committed Apr 7, 2019
1 parent 6a19064 commit 134d6063bf887c45e671639c60b49104a912df45
@@ -33,7 +33,7 @@

// increment this value if you've made a change to the c extesion
// and want to force users to rebuild
#define OVERVIEWER_EXTENSION_VERSION 60
#define OVERVIEWER_EXTENSION_VERSION 61

/* Python PIL, and numpy headers */
#include <Python.h>
@@ -77,7 +77,7 @@ base_draw(void *data, RenderState *state, PyObject *src, PyObject *mask, PyObjec
PrimitiveBase *self = (PrimitiveBase *)data;

/* in order to detect top parts of doublePlant grass & ferns */
unsigned char below_block = get_data(state, BLOCKS, state->x, state->y-1, state->z);
unsigned short below_block = get_data(state, BLOCKS, state->x, state->y-1, state->z);
unsigned char below_data = get_data(state, DATA, state->x, state->y-1, state->z);

/* draw the block! */
@@ -29,7 +29,7 @@ typedef struct {

struct Condition{
int relx, rely, relz;
unsigned char block;
unsigned short block;
};

struct Color {

0 comments on commit 134d606

Please sign in to comment.
You can’t perform that action at this time.