Update all tiles to use their given icon names and register with new name patterns with misc changes
This commit is contained in:
parent
6635d352dc
commit
4eaea8dc3f
51 changed files with 278 additions and 275 deletions
|
|
@ -161,9 +161,10 @@ bool Sapling::isSapling(Level *level, int x, int y, int z, int type)
|
|||
void Sapling::registerIcons(IconRegister *iconRegister)
|
||||
{
|
||||
icons = new Icon*[SAPLING_NAMES_SIZE];
|
||||
auto woodTile = (WoodTile*)Tile::wood;
|
||||
|
||||
for (int i = 0; i < SAPLING_NAMES_SIZE; i++)
|
||||
{
|
||||
icons[i] = iconRegister->registerIcon(TEXTURE_NAMES[i]);
|
||||
icons[i] = iconRegister->registerIcon(woodTile->TEXTURE_NAMES[i] + L"_sapling");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue