diff options
author | sapier <Sapier at GMX dot net> | 2014-04-06 10:32:57 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-04-06 10:32:57 +0200 |
commit | 556bdc260a6938ddab8db22e2ebc4033ec3757eb (patch) | |
tree | e6618af8ecb8a7078f94dd993076e4b51b6bc5b8 /src/mapblock_mesh.h | |
parent | 28854495b172cdea6c835bb6482200c4e277b040 (diff) | |
download | minetest-556bdc260a6938ddab8db22e2ebc4033ec3757eb.tar.gz minetest-556bdc260a6938ddab8db22e2ebc4033ec3757eb.tar.bz2 minetest-556bdc260a6938ddab8db22e2ebc4033ec3757eb.zip |
Pass pointer to nodedef directly to avoid recalculation in quite often called function
Diffstat (limited to 'src/mapblock_mesh.h')
-rw-r--r-- | src/mapblock_mesh.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapblock_mesh.h b/src/mapblock_mesh.h index 021309d99..7f5231738 100644 --- a/src/mapblock_mesh.h +++ b/src/mapblock_mesh.h @@ -172,8 +172,8 @@ inline video::SColor MapBlock_LightColor(u8 alpha, u16 light, u8 light_source=0) } // Compute light at node -u16 getInteriorLight(MapNode n, s32 increment, MeshMakeData *data); -u16 getFaceLight(MapNode n, MapNode n2, v3s16 face_dir, MeshMakeData *data); +u16 getInteriorLight(MapNode n, s32 increment, INodeDefManager *ndef); +u16 getFaceLight(MapNode n, MapNode n2, v3s16 face_dir, INodeDefManager *ndef); u16 getSmoothLight(v3s16 p, v3s16 corner, MeshMakeData *data); // Retrieves the TileSpec of a face of a node |