Last of the nitpicker note fixes. Added some inline commenting.
This commit is contained in:
parent
e94307c292
commit
7157c392fa
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user