0

primitives: misc char -> short fixes

This commit is contained in:
Nicolas F
2019-04-07 20:25:53 +02:00
parent 6a1906445c
commit 134d6063bf
3 changed files with 3 additions and 3 deletions

View File

@@ -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>

View File

@@ -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! */

View File

@@ -29,7 +29,7 @@ typedef struct {
struct Condition{
int relx, rely, relz;
unsigned char block;
unsigned short block;
};
struct Color {