diff options
| author | Caldfir | 2012-04-16 19:13:02 -0700 |
|---|---|---|
| committer | Caldfir | 2012-04-16 19:13:02 -0700 |
| commit | 4592f26db756cb26ec7cdda8a0597a7787afa58c (patch) | |
| tree | 5efa51000ece4234f817e65195dfa1fcb732840f /Block.cpp | |
| parent | 39b9dab4247f3e089754ebda0c4d00de68f3bc80 (diff) | |
| download | stonesense-4592f26db756cb26ec7cdda8a0597a7787afa58c.tar.gz stonesense-4592f26db756cb26ec7cdda8a0597a7787afa58c.tar.bz2 stonesense-4592f26db756cb26ec7cdda8a0597a7787afa58c.tar.xz | |
Fixed the glorious hot pink grass bug I created.
Diffstat (limited to 'Block.cpp')
| -rw-r--r-- | Block.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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));
}
}
|
