From 3a0562bebcb91d05fceb5a1f9ded539f77a625e4 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 5 Jun 2012 23:51:37 +0300 Subject: Add after_destruct and cache the existence of on_construct, on_destruct and after_destruct for quick skipping when a node does not have them --- src/nodedef.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nodedef.cpp') diff --git a/src/nodedef.cpp b/src/nodedef.cpp index 2feec04f8..eaf061287 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -117,6 +117,9 @@ void ContentFeatures::reset() visual_solidness = 0; backface_culling = true; #endif + has_on_construct = false; + has_on_destruct = false; + has_after_destruct = false; /* Actual data -- cgit v1.2.3