From 406d9ba87b9f6e57b86c6282bf157e3341aa195c Mon Sep 17 00:00:00 2001 From: kwolekr Date: Fri, 17 Apr 2015 00:52:48 -0400 Subject: Schematics: Remove referenced schematics from Decorations on clear --- src/mg_schematic.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/mg_schematic.h') diff --git a/src/mg_schematic.h b/src/mg_schematic.h index 63cea21f6..296e7b104 100644 --- a/src/mg_schematic.h +++ b/src/mg_schematic.h @@ -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, -- cgit v1.2.3