Distinguish grass and foliage green in block types

This commit is contained in:
Matthias Schiffer 2018-11-07 22:50:42 +01:00
parent 60bff1fb34
commit 4ffa28dd63
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
6 changed files with 622 additions and 619 deletions

View file

@ -45,7 +45,7 @@ Block::Color Block::getColor() const {
g *= heightCoef;
b *= heightCoef;
if (type->green) {
if (type->grass || type->foliage) {
const Resource::Biome &biomeDef = Resource::BIOMES[biome];
r *= biomeDef.r;