diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-07-22 16:59:18 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-07-22 16:59:18 +0200 |
commit | 4e3a9736b67b9cb7be54e6330a13d5dc600ef68d (patch) | |
tree | a58ddd612c03ca4d295f07bf265eb4e31002a100 /src | |
parent | 2ed7f13268642d255ebc4b13cf497514907da406 (diff) | |
download | MinedMap-4e3a9736b67b9cb7be54e6330a13d5dc600ef68d.tar MinedMap-4e3a9736b67b9cb7be54e6330a13d5dc600ef68d.zip |
World/Block: remove useless blockLight accessor
Diffstat (limited to 'src')
-rw-r--r-- | src/MinedMap.cpp | 2 | ||||
-rw-r--r-- | src/World/Block.hpp | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/MinedMap.cpp b/src/MinedMap.cpp index bfd34b9..9de41d0 100644 --- a/src/MinedMap.cpp +++ b/src/MinedMap.cpp @@ -62,7 +62,7 @@ static void addChunk(uint32_t image[DIM*DIM], uint8_t lightmap[2*DIM*DIM], size_ const World::Block &block = layer.blocks[x][z]; image[i] = htonl(block.getColor()); - lightmap[2*i+1] = (1 - block.getBlockLight()/15.f)*192; + lightmap[2*i+1] = (1 - block.blockLight/15.f)*192; } } } diff --git a/src/World/Block.hpp b/src/World/Block.hpp index 81d8b27..4975faa 100644 --- a/src/World/Block.hpp +++ b/src/World/Block.hpp @@ -47,10 +47,6 @@ struct Block { Block(uint8_t id0, uint8_t data0, unsigned height0, uint8_t blockLight0, uint8_t skyLight0, uint8_t biome0) : id(id0), data(data0), height(height0), blockLight(blockLight0), skyLight(skyLight0), biome(biome0) {} - uint8_t getBlockLight() const { - return blockLight; - } - uint32_t getColor() const; }; |