0

grass now has snowy sides when covered in snow

This commit is contained in:
Aaron Griffith
2011-05-01 19:42:27 -04:00
parent e110fe735d
commit c1e71f0fda
3 changed files with 23 additions and 10 deletions

View File

@@ -138,7 +138,9 @@ rendermode_normal_draw(void *data, RenderState *state, PyObject *src, PyObject *
switch (state->block) {
case 2:
/* grass */
/* grass -- skip for snowgrass */
if (state->z < 127 && getArrayByte3D(state->blocks, state->x, state->y, state->z+1) == 78)
break;
color = PySequence_GetItem(self->grasscolor, index);
facemask = self->grass_texture;
alpha_over(state->img, self->grass_texture, self->grass_texture, state->imgx, state->imgy, 0, 0);