mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
quick check with linters
This commit is contained in:
parent
92f185ab51
commit
9522aedeec
55 changed files with 129 additions and 184 deletions
|
|
@ -24,7 +24,7 @@ std::unique_ptr<ubyte[]> Lightmap::encode() const {
|
|||
return buffer;
|
||||
}
|
||||
|
||||
std::unique_ptr<light_t[]> Lightmap::decode(ubyte* buffer) {
|
||||
std::unique_ptr<light_t[]> Lightmap::decode(const ubyte* buffer) {
|
||||
auto lights = std::make_unique<light_t[]>(CHUNK_VOL);
|
||||
for (uint i = 0; i < CHUNK_VOL; i+=2) {
|
||||
ubyte b = buffer[i/2];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue