From 577701cabd6382bb97dc05e9c9244b5ce8202ca3 Mon Sep 17 00:00:00 2001 From: gregorycu Date: Mon, 23 Feb 2015 23:20:06 +1000 Subject: Optimise MapBlockMesh related functions Directely or indirectly optimises the following functions: * MapBlockMesh::MapBlockMesh * MapBlockMesh::getTileInfo * MapBlockMesh::makeFastFace * MapBlockMesh::getSmoothLightCombined --- src/mapnode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mapnode.h') 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; -- cgit v1.2.3