Varoom: Make sky height dynamic

This commit makes it so that Varoom's sky is properly rendered across
multiple resolutions. It also lowers the sun down by 10 pixels.
This commit is contained in:
xSlendiX 2022-05-16 02:23:44 +03:00
parent ea9dab14d3
commit f8f0c435bb

View file

@ -494,7 +494,7 @@ U0 DrawIt(CTask *task, CDC *dc)
Car *tmpc = &c[0];
dc->color = LTCYAN;
GrRect(dc, 0, 0, w, HORIZON_DIP * Sin(dip_é) + FONT_HEIGHT * 4.5);
GrRect(dc, 0, 0, w, HORIZON_DIP * Sin(dip_é) + h/8);
Mat4x4IdentEqu(r);
Mat4x4RotY(r, ă - c[0].é);
@ -511,9 +511,9 @@ U0 DrawIt(CTask *task, CDC *dc)
if (y < 0)
{
dc->color = BROWN;
GrCircle(dc, s * x + cx, 15 + HORIZON_DIP * Sin(dip_é), 15);
GrCircle(dc, s * x + cx, 25 + HORIZON_DIP * Sin(dip_é), 15);
dc->color = YELLOW;
GrFloodFill(dc, s * x + cx, 15 + HORIZON_DIP * Sin(dip_é));
GrFloodFill(dc, s * x + cx, 25 + HORIZON_DIP * Sin(dip_é));
}
mp_not_done_flags = 1 << mp_count - 1;