mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-05 01:24:53 +01:00
World/Block: remove useless blockLight accessor
This commit is contained in:
parent
2ed7f13268
commit
4e3a9736b6
2 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue