Revert "Project modernization (#630)"

This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.

This reverts commit a9be52c41a.
This commit is contained in:
Loki Rautio
2026-03-07 21:12:22 -06:00
parent a9be52c41a
commit 087b7e7abf
1373 changed files with 19449 additions and 19903 deletions

View File

@@ -48,7 +48,7 @@ void StoneMonsterTile::destroy(Level *level, int x, int y, int z, int data)
// Also limit the amount of silverfish specifically
if(level->countInstanceOf( eTYPE_SILVERFISH, true) < 15 )
{
shared_ptr<Silverfish> silverfish = std::make_shared<Silverfish>(level);
shared_ptr<Silverfish> silverfish = shared_ptr<Silverfish>(new Silverfish(level));
silverfish->moveTo(x + .5, y, z + .5, 0, 0);
level->addEntity(silverfish);
@@ -106,7 +106,7 @@ shared_ptr<ItemInstance> StoneMonsterTile::getSilkTouchItemInstance(int data)
{
tile = Tile::stoneBrick;
}
return std::make_shared<ItemInstance>(tile);
return shared_ptr<ItemInstance>(new ItemInstance(tile));
}
int StoneMonsterTile::cloneTileData(Level *level, int x, int y, int z)