December 2014 files

This commit is contained in:
Loki Rautio
2026-03-01 11:00:23 -06:00
parent b691c43c44
commit 8fd3ac6e37
2049 changed files with 260190 additions and 134787 deletions

View File

@@ -55,10 +55,10 @@ bool MegaTreeFeature::place(Level *level, Random *random, int x, int y, int z)
int belowTile = level->getTile(x, y - 1, z);
if ((belowTile != Tile::grass_Id && belowTile != Tile::dirt_Id) || y >= Level::maxBuildHeight - treeHeight - 1) return false;
level->setTileNoUpdate(x, y - 1, z, Tile::dirt_Id);
level->setTileNoUpdate(x + 1, y - 1, z, Tile::dirt_Id);
level->setTileNoUpdate(x, y - 1, z + 1, Tile::dirt_Id);
level->setTileNoUpdate(x + 1, y - 1, z + 1, Tile::dirt_Id);
level->setTileAndData(x, y - 1, z, Tile::dirt_Id, 0, Tile::UPDATE_CLIENTS);
level->setTileAndData(x + 1, y - 1, z, Tile::dirt_Id, 0, Tile::UPDATE_CLIENTS);
level->setTileAndData(x, y - 1, z + 1, Tile::dirt_Id, 0, Tile::UPDATE_CLIENTS);
level->setTileAndData(x + 1, y - 1, z + 1, Tile::dirt_Id, 0, Tile::UPDATE_CLIENTS);
PIXBeginNamedEvent(0,"MegaTree placing leaves, %d, %d, %d", x, z, y+treeHeight);
placeLeaves(level, x, z, y + treeHeight, 2, random);
@@ -189,7 +189,7 @@ void MegaTreeFeature::placeLeaves(Level *level, int x, int z, int topPosition, i
PIXBeginNamedEvent(0,"Getting tile");
int t = level->getTile(xx, yy, zz);
PIXEndNamedEvent();
if (!Tile::solid[t])
if (t == 0 || t == Tile::leaves_Id)
{
PIXBeginNamedEvent(0,"Placing block");
placeBlock(level, xx, yy, zz, Tile::leaves_Id, leafType);