Correct check for lighting support (#1486)

This commit is contained in:
Anders Jenbo
2025-05-15 01:39:55 +02:00
committed by GitHub
parent 88651404cb
commit fce97ea06f
4 changed files with 7 additions and 7 deletions

View File

@@ -1303,7 +1303,7 @@ void LegoBackgroundColor::ToggleSkyColor()
// FUNCTION: BETA10 0x10086984
void LegoBackgroundColor::SetLightColor(float p_r, float p_g, float p_b)
{
if (!VideoManager()->GetVideoParam().Flags().GetF2bit0()) {
if (!VideoManager()->GetVideoParam().Flags().GetLacksLightSupport()) {
// TODO: Computed constants based on what?
p_r *= 1. / 0.23;
p_g *= 1. / 0.63;