1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-15 01:25:20 +02:00

Schematics: Remove referenced schematics from Decorations on clear

This commit is contained in:
kwolekr
2015-04-17 00:52:48 -04:00
parent f0a1379e5a
commit 406d9ba87b
6 changed files with 67 additions and 38 deletions

View File

@@ -29,6 +29,7 @@ class Mapgen;
class MMVManip;
class PseudoRandom;
class NodeResolver;
class IGameDef;
/*
Minetest Schematic File Format
@@ -121,7 +122,9 @@ public:
class SchematicManager : public ObjDefManager {
public:
SchematicManager(IGameDef *gamedef);
~SchematicManager() {}
virtual ~SchematicManager() {}
virtual void clear();
const char *getObjectTitle() const
{
@@ -132,6 +135,9 @@ public:
{
return new Schematic;
}
private:
IGameDef *m_gamedef;
};
void build_nnlist_and_update_ids(MapNode *nodes, u32 nodecount,