mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-14 03:44:34 +00:00
improve matches (#1413)
This commit is contained in:
parent
26d6028ff1
commit
a715bf63d0
21 changed files with 45 additions and 104 deletions
|
@ -68,16 +68,13 @@ void Lights_Draw(Lights* lights, GraphicsContext* gfxCtx) {
|
|||
light = &lights->l.l[0];
|
||||
|
||||
while (i < lights->numLights) {
|
||||
i++;
|
||||
gSPLight(POLY_OPA_DISP++, light, i);
|
||||
gSPLight(POLY_OPA_DISP++, light, ++i);
|
||||
gSPLight(POLY_XLU_DISP++, light, i);
|
||||
light++;
|
||||
}
|
||||
|
||||
if (0) {}
|
||||
|
||||
i++; // ambient light is total number of lights + 1
|
||||
gSPLight(POLY_OPA_DISP++, &lights->l.a, i);
|
||||
// ambient light is total number of lights + 1
|
||||
gSPLight(POLY_OPA_DISP++, &lights->l.a, ++i);
|
||||
gSPLight(POLY_XLU_DISP++, &lights->l.a, i);
|
||||
|
||||
CLOSE_DISPS(gfxCtx, "../z_lights.c", 352);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue