0

Move decl to top of block

This commit is contained in:
Andrew Chin
2011-06-09 11:45:36 -04:00
parent 5b25b3c597
commit 56a2e1f834

View File

@@ -126,6 +126,7 @@ static void
rendermode_normal_draw(void *data, RenderState *state, PyObject *src, PyObject *mask, PyObject *mask_light) {
RenderModeNormal *self = (RenderModeNormal *)data;
int randx = 0,randy = 0;
unsigned char data;
/* first, check to see if we should use biome-compatible src, mask */
if (self->biome_data) {
@@ -137,7 +138,7 @@ rendermode_normal_draw(void *data, RenderState *state, PyObject *src, PyObject *
randy = rand() % 6 + 1 - 3;
state->imgx = state->imgx + randx;
state->imgy = state->imgy + randy;
unsigned char data = getArrayByte3D(state->blockdata_expanded, state->x, state->y, state->z);
data = getArrayByte3D(state->blockdata_expanded, state->x, state->y, state->z);
if (data == 1) {
src = mask = self->tall_grass_texture;
} else if (data == 2) {