summaryrefslogtreecommitdiff
path: root/src/mapnode.h
diff options
context:
space:
mode:
authorgregorycu <gregory.currie@gmail.com>2015-02-23 23:20:06 +1000
committerCraig Robbins <kde.psych@gmail.com>2015-02-23 23:20:31 +1000
commit577701cabd6382bb97dc05e9c9244b5ce8202ca3 (patch)
treedb20283fff1b8563fe4c5f11f16ddbe30702b0d1 /src/mapnode.h
parent3b6480c5b0c968ad9f5a7cfb7ca494989be03629 (diff)
downloadminetest-577701cabd6382bb97dc05e9c9244b5ce8202ca3.tar.gz
minetest-577701cabd6382bb97dc05e9c9244b5ce8202ca3.tar.bz2
minetest-577701cabd6382bb97dc05e9c9244b5ce8202ca3.zip
Optimise MapBlockMesh related functions
Directely or indirectly optimises the following functions: * MapBlockMesh::MapBlockMesh * MapBlockMesh::getTileInfo * MapBlockMesh::makeFastFace * MapBlockMesh::getSmoothLightCombined
Diffstat (limited to 'src/mapnode.h')
-rw-r--r--src/mapnode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapnode.h b/src/mapnode.h
index b7d9f3acd..7cc25c60c 100644
--- a/src/mapnode.h
+++ b/src/mapnode.h
@@ -217,7 +217,7 @@ struct MapNode
* @pre f != NULL
* @pre f->param_type == CPT_LIGHT
*/
- u8 getLightNoChecks(LightBank bank, const ContentFeatures *f);
+ u8 getLightNoChecks(LightBank bank, const ContentFeatures *f) const;
bool getLightBanks(u8 &lightday, u8 &lightnight, INodeDefManager *nodemgr) const;