1
0
Fork 0

Last of the nitpicker note fixes. Added some inline commenting.

This commit is contained in:
Samuel Barney 2013-10-30 16:14:42 -06:00
parent e94307c292
commit 7157c392fa
1 changed files with 1 additions and 0 deletions

View File

@ -2789,6 +2789,7 @@ Vector3i cChunk::PositionToWorldPosition(int a_RelX, int a_RelY, int a_RelZ)
NIBBLETYPE cChunk::GetTimeAlteredLight(NIBBLETYPE a_Skylight) const
{
a_Skylight -= m_World->GetSkyDarkness();
// Because NIBBLETYPE is unsigned, we clamp it to 0 .. 15 by checking for values above 15
return (a_Skylight < 16)? a_Skylight : 0;
}