diff --git a/src/pc/gfx/gfx_pc.c b/src/pc/gfx/gfx_pc.c index 03b9f1558..10cb2b500 100644 --- a/src/pc/gfx/gfx_pc.c +++ b/src/pc/gfx/gfx_pc.c @@ -1354,6 +1354,16 @@ static void gfx_sp_moveword(uint8_t index, uint16_t offset, uint32_t data) { rsp.fresnel_offset = (int16_t)data; } break; + case G_MW_LIGHTCOL: { + int lightNum = offset / 24; + // data = packed color + if (lightNum >= 0 && lightNum <= MAX_LIGHTS) { + rsp.current_lights[lightNum].col[0] = (uint8_t)(data >> 24); + rsp.current_lights[lightNum].col[1] = (uint8_t)(data >> 16); + rsp.current_lights[lightNum].col[2] = (uint8_t)(data >> 8); + } + break; + } } }