0

changed mineral overlay to highlight even if the block is just above the color

This commit is contained in:
Aaron Griffith
2011-06-14 21:13:53 -04:00
parent a50cd315ef
commit 7d587ecc6d

View File

@@ -43,7 +43,7 @@ static struct MineralColor default_minerals[] = {
static void get_color(void *data, RenderState *state,
unsigned char *r, unsigned char *g, unsigned char *b, unsigned char *a) {
int x = state->x, y = state->y, z_max = state->z, z;
int x = state->x, y = state->y, z_max = state->z + 1, z;
int max_i = -1;
RenderModeMineral* self = (RenderModeMineral *)data;
struct MineralColor *minerals = (struct MineralColor *)(self->minerals);