| 3050 | |
| 3051 | |
| 3052 | NIBBLETYPE cChunk::GetTimeAlteredLight(NIBBLETYPE a_Skylight) const |
| 3053 | { |
| 3054 | a_Skylight -= m_World->GetSkyDarkness(); |
| 3055 | // Because NIBBLETYPE is unsigned, we clamp it to 0 .. 15 by checking for values above 15 |
| 3056 | return (a_Skylight < 16)? a_Skylight : 0; |
| 3057 | } |
| 3058 | |
| 3059 | |
| 3060 |
no test coverage detected