aboutsummaryrefslogtreecommitdiff
path: root/src/nodedef.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-06-05 23:51:37 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-06-05 23:51:37 +0300
commit3a0562bebcb91d05fceb5a1f9ded539f77a625e4 (patch)
tree8b788689029fbeaf7880b628186b77c5f667845f /src/nodedef.cpp
parentc3658e7c797cbf5b9d04a6d950505d37dcdd422b (diff)
downloadhax-minetest-server-3a0562bebcb91d05fceb5a1f9ded539f77a625e4.tar.gz
hax-minetest-server-3a0562bebcb91d05fceb5a1f9ded539f77a625e4.zip
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
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r--src/nodedef.cpp3
1 files changed, 3 insertions, 0 deletions
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