From 4e3a9736b67b9cb7be54e6330a13d5dc600ef68d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 22 Jul 2018 16:59:18 +0200 Subject: World/Block: remove useless blockLight accessor --- src/MinedMap.cpp | 2 +- src/World/Block.hpp | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src') 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; }; -- cgit v1.2.3