diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-19 18:48:09 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:49 +0200 |
commit | 901d98b687d9681b83aface7e6697d6937023024 (patch) | |
tree | 692536bf45341f7a950da01c5c5b338a14e440fd /src/nodedef.cpp | |
parent | 4503b03b26b48b546ce3837120f149cd696692a2 (diff) | |
download | minetest-901d98b687d9681b83aface7e6697d6937023024.tar.gz minetest-901d98b687d9681b83aface7e6697d6937023024.tar.bz2 minetest-901d98b687d9681b83aface7e6697d6937023024.zip |
Optimize map generator for the dynamic content ids a bit
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r-- | src/nodedef.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp index 8497b74b0..de724659b 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -406,6 +406,12 @@ public: { return m_name_id_mapping.getId(name, result); } + virtual content_t getId(const std::string &name) const + { + content_t id = CONTENT_IGNORE; + getId(name, id); + return id; + } virtual const ContentFeatures& get(const std::string &name) const { content_t id = CONTENT_IGNORE; |