mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
quick check with linters
This commit is contained in:
parent
92f185ab51
commit
9522aedeec
55 changed files with 129 additions and 184 deletions
|
|
@ -40,13 +40,13 @@ const BlockRotProfile BlockRotProfile::PANE {"pane", {
|
|||
|
||||
Block::Block(std::string name)
|
||||
: name(name),
|
||||
caption(util::id_to_caption(name)),
|
||||
textureFaces {TEXTURE_NOTFOUND,TEXTURE_NOTFOUND,TEXTURE_NOTFOUND,
|
||||
TEXTURE_NOTFOUND,TEXTURE_NOTFOUND,TEXTURE_NOTFOUND} {
|
||||
rotations = BlockRotProfile::PIPE;
|
||||
caption = util::id_to_caption(name);
|
||||
}
|
||||
TEXTURE_NOTFOUND,TEXTURE_NOTFOUND,TEXTURE_NOTFOUND},
|
||||
rotations(BlockRotProfile::PIPE)
|
||||
{}
|
||||
|
||||
Block::Block(std::string name, std::string texture) : name(name),
|
||||
textureFaces{texture,texture,texture,texture,texture,texture} {
|
||||
rotations = BlockRotProfile::PIPE;
|
||||
}
|
||||
textureFaces{texture,texture,texture,texture,texture,texture},
|
||||
rotations(BlockRotProfile::PIPE)
|
||||
{}
|
||||
|
|
|
|||
|
|
@ -423,9 +423,7 @@ void Chunks::translate(int32_t dx, int32_t dz) {
|
|||
continue;
|
||||
if (nx < 0 || nz < 0 || nx >= int(w) || nz >= int(d)){
|
||||
events->trigger(EVT_CHUNK_HIDDEN, chunk.get());
|
||||
if (worldFiles) {
|
||||
regions.put(chunk.get());
|
||||
}
|
||||
regions.put(chunk.get());
|
||||
chunksCount--;
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public:
|
|||
std::vector<std::shared_ptr<Chunk>> chunksSecond;
|
||||
size_t volume;
|
||||
size_t chunksCount;
|
||||
size_t visible;
|
||||
size_t visible = 0;
|
||||
uint32_t w, d;
|
||||
int32_t ox, oz;
|
||||
WorldFiles* worldFiles;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue