summaryrefslogtreecommitdiff
path: root/Block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Block.cpp')
-rw-r--r--Block.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Block.cpp b/Block.cpp
index 5b102c3..1abf4bc 100644
--- a/Block.cpp
+++ b/Block.cpp
@@ -616,8 +616,7 @@ void Block::DrawPixel(int drawx, int drawy)
(tileMaterial == tiletype_material::GRASS_DRY) ||
(tileMaterial == tiletype_material::GRASS_DEAD)))
{
- DFHack::t_matglossPair woodymat; woodymat.index = WOOD, woodymat.type = grassmat;
- temp = lookupMaterialColor(woodymat);
+ temp = lookupMaterialColor(WOOD, grassmat);
al_draw_pixel(drawx, drawy, al_map_rgba_f(temp.r,temp.g, temp.b, (float)grasslevel/100.0f));
}
}