0

Default tinting now in C code

This commit is contained in:
CounterPillow
2011-09-14 21:50:20 +02:00
parent 309db05924
commit ff6dba7419

View File

@@ -210,12 +210,19 @@ rendermode_normal_draw(void *data, RenderState *state, PyObject *src, PyObject *
Py_DECREF(color); Py_DECREF(color);
} }
} else { } else {
/* manual tinting required */ if (state->block == 2 || state->block == 31) /* grass */
{
/* FIXME */ /* grass */
r = 255; r = 115;
g = 255; g = 175;
b = 255; b = 71;
}
if (state->block == 18 || state->block == 106) /* leaves and vines */
{
r = 37;
g = 118;
b = 25;
}
} }
tint_with_mask(state->img, r, g, b, 255, facemask, state->imgx, state->imgy, 0, 0); tint_with_mask(state->img, r, g, b, 255, facemask, state->imgx, state->imgy, 0, 0);