This commit is contained in:
Christian Semmler 2024-03-29 16:21:09 -04:00
parent 13dd965571
commit fddd0ca88f

View File

@ -186,16 +186,16 @@ void LegoView1::Destroy()
// FUNCTION: LEGO1 0x100abb60 // FUNCTION: LEGO1 0x100abb60
void LegoView1::SetLight(BOOL bDirectionalLight, Tgl::FloatMatrix4& rMatrix) void LegoView1::SetLight(BOOL bDirectionalLight, Tgl::FloatMatrix4& rMatrix)
{ {
Tgl::Light* light; Tgl::Light* pLight;
if (bDirectionalLight == FALSE) { if (bDirectionalLight == FALSE) {
light = m_pSunLight; pLight = m_pSunLight;
} }
else { else {
light = m_pDirectionalLight; pLight = m_pDirectionalLight;
} }
SetLight(light, rMatrix); SetLight(pLight, rMatrix);
} }
// FUNCTION: LEGO1 0x100abb80 // FUNCTION: LEGO1 0x100abb80