clang-tidy: fix many warnings

This commit is contained in:
Er2
2023-12-02 21:04:21 +03:00
parent 0f9131c43a
commit bf78dd4bf1
28 changed files with 61 additions and 57 deletions

View File

@@ -13,7 +13,7 @@ ClothTile::ClothTile(int id, int type) : Tile(id, TEXTURE_CLOTH_64, Material::cl
{
field_6C = type;
m_TextureFrame = getTexture(0, type);
m_TextureFrame = ClothTile::getTexture(0, type);
}
int ClothTile::getTexture(int dir)

View File

@@ -40,6 +40,7 @@ bool Sapling::maybeGrowTree(Level* level, int x, int y, int z, Random* random)
BirchFeature birchFeature;
SpruceFeature spruceFeature;
/*
Feature* pFeature = &treeFeature;
int data = level->getData(x, y, z);
@@ -52,6 +53,7 @@ bool Sapling::maybeGrowTree(Level* level, int x, int y, int z, Random* random)
pFeature = &spruceFeature;
break;
}
*/
return treeFeature.place(level, random, x, y, z);
}