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

@ -41,7 +41,8 @@ public:
static const BlockType * lookup(const std::string &name);
bool opaque;
bool green;
bool grass;
bool foliage;
bool blue;
struct {
uint8_t r, g, b;

File diff suppressed because it is too large Load diff

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;