From 1384108f8c32f309852c1d1665a613f2a3e3fcc2 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Wed, 4 Nov 2015 03:33:12 -0500 Subject: Schematics: Add core.place_schematic_on_vmanip API Fix memory leak in minetest.place_schematic Slightly refactor Schematic code --- src/mg_schematic.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mg_schematic.h') diff --git a/src/mg_schematic.h b/src/mg_schematic.h index 5c732648e..da8859540 100644 --- a/src/mg_schematic.h +++ b/src/mg_schematic.h @@ -106,8 +106,9 @@ public: bool serializeToLua(std::ostream *os, const std::vector &names, bool use_comments, u32 indent_spaces); - void blitToVManip(v3s16 p, MMVManip *vm, Rotation rot, bool force_place); - void placeStructure(Map *map, v3s16 p, u32 flags, Rotation rot, bool force_place); + void blitToVManip(MMVManip *vm, v3s16 p, Rotation rot, bool force_place); + bool placeOnVManip(MMVManip *vm, v3s16 p, u32 flags, Rotation rot, bool force_place); + void placeOnMap(Map *map, v3s16 p, u32 flags, Rotation rot, bool force_place); void applyProbabilities(v3s16 p0, std::vector > *plist, -- cgit v1.2.3