diff options
Diffstat (limited to 'src/mapblock_mesh.h')
-rw-r--r-- | src/mapblock_mesh.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mapblock_mesh.h b/src/mapblock_mesh.h index eccc1dcd0..2f1f3871d 100644 --- a/src/mapblock_mesh.h +++ b/src/mapblock_mesh.h @@ -233,8 +233,9 @@ struct MeshCollector video::SColor encode_light(u16 light, u8 emissive_light); // Compute light at node -u16 getInteriorLight(MapNode n, s32 increment, INodeDefManager *ndef); -u16 getFaceLight(MapNode n, MapNode n2, v3s16 face_dir, INodeDefManager *ndef); +u16 getInteriorLight(MapNode n, s32 increment, const NodeDefManager *ndef); +u16 getFaceLight(MapNode n, MapNode n2, v3s16 face_dir, + const NodeDefManager *ndef); u16 getSmoothLightSolid(const v3s16 &p, const v3s16 &face_dir, const v3s16 &corner, MeshMakeData *data); u16 getSmoothLightTransparent(const v3s16 &p, const v3s16 &corner, MeshMakeData *data); |