Skip to content

Commit

Permalink
primitives: misc char -> short fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CounterPillow committed Apr 7, 2019
1 parent 6a19064 commit 134d606
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion overviewer_core/src/overviewer.h
Expand Up @@ -33,7 +33,7 @@


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


/* Python PIL, and numpy headers */ /* Python PIL, and numpy headers */
#include <Python.h> #include <Python.h>
Expand Down
2 changes: 1 addition & 1 deletion overviewer_core/src/primitives/base.c
Expand Up @@ -77,7 +77,7 @@ base_draw(void *data, RenderState *state, PyObject *src, PyObject *mask, PyObjec
PrimitiveBase *self = (PrimitiveBase *)data; PrimitiveBase *self = (PrimitiveBase *)data;


/* in order to detect top parts of doublePlant grass & ferns */ /* 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); unsigned char below_data = get_data(state, DATA, state->x, state->y-1, state->z);


/* draw the block! */ /* draw the block! */
Expand Down
2 changes: 1 addition & 1 deletion overviewer_core/src/primitives/overlay-structure.c
Expand Up @@ -29,7 +29,7 @@ typedef struct {


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


struct Color { struct Color {
Expand Down

2 comments on commit 134d606

@Wunkolo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably be using the mc_block_t type that I added here, so that decision and size can exist in one place.

@CounterPillow
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, will go back and do that the next time I find some time to work on the C part

Please sign in to comment.