summaryrefslogtreecommitdiff
path: root/src/mapnode.h
diff options
context:
space:
mode:
authorCraig Robbins <kde.psych@gmail.com>2014-12-14 21:28:08 +1000
committerCraig Robbins <kde.psych@gmail.com>2014-12-31 02:44:31 +1000
commit3d29be24e089b1c267409f05b897ce3f03e99a07 (patch)
tree56ecebfe323bf37536dcbf44c7a0668f725abc94 /src/mapnode.h
parent2414580754734b62119369255b0e9c462381dc8a (diff)
downloadminetest-3d29be24e089b1c267409f05b897ce3f03e99a07.tar.gz
minetest-3d29be24e089b1c267409f05b897ce3f03e99a07.tar.bz2
minetest-3d29be24e089b1c267409f05b897ce3f03e99a07.zip
Add display_gamma option for client
Diffstat (limited to 'src/mapnode.h')
-rw-r--r--src/mapnode.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/mapnode.h b/src/mapnode.h
index e67724ec1..da6e9bdea 100644
--- a/src/mapnode.h
+++ b/src/mapnode.h
@@ -209,7 +209,7 @@ struct MapNode
u8 getLightNoChecks(LightBank bank, const ContentFeatures *f);
bool getLightBanks(u8 &lightday, u8 &lightnight, INodeDefManager *nodemgr) const;
-
+
// 0 <= daylight_factor <= 1000
// 0 <= return value <= LIGHT_SUN
u8 getLightBlend(u32 daylight_factor, INodeDefManager *nodemgr) const
@@ -220,16 +220,6 @@ struct MapNode
return blend_light(daylight_factor, lightday, lightnight);
}
- // 0.0 <= daylight_factor <= 1.0
- // 0 <= return value <= LIGHT_SUN
- u8 getLightBlendF1(float daylight_factor, INodeDefManager *nodemgr) const
- {
- u8 lightday = 0;
- u8 lightnight = 0;
- getLightBanks(lightday, lightnight, nodemgr);
- return blend_light_f1(daylight_factor, lightday, lightnight);
- }
-
u8 getFaceDir(INodeDefManager *nodemgr) const;
u8 getWallMounted(INodeDefManager *nodemgr) const;
v3s16 getWallMountedDir(INodeDefManager *nodemgr) const;