diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-06-05 23:51:37 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-06-05 23:51:37 +0300 |
commit | 3a0562bebcb91d05fceb5a1f9ded539f77a625e4 (patch) | |
tree | 8b788689029fbeaf7880b628186b77c5f667845f /src/nodedef.cpp | |
parent | c3658e7c797cbf5b9d04a6d950505d37dcdd422b (diff) | |
download | hax-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.cpp | 3 |
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 |