Add RmlUi

This commit is contained in:
Zero
2026-06-10 16:12:51 +02:00
parent b1d5ea2253
commit d2b7ff5f43
1255 changed files with 270119 additions and 1362 deletions

View File

@@ -1498,13 +1498,13 @@ int LivingEntity::getLightColor(float a)
for( int xt = xmin; xt <= xmax; xt++ )
{
float tilexmin = max(static_cast<float>(xt), bb->x0);
float tilexmax = min(static_cast<float>(xt + 1), bb->x1);
float tilexmin = max(static_cast<float>(xt), static_cast<float>(bb->x0));
float tilexmax = min(static_cast<float>(xt + 1), static_cast<float>(bb->x1));
float dx = tilexmax - tilexmin;
for( int yt = ymin; yt <= ymax; yt++ )
{
float tileymin = max(static_cast<float>(yt), bb->y0);
float tileymax = min(static_cast<float>(yt + 1), bb->y1);
float tileymin = max(static_cast<float>(yt), static_cast<float>(bb->y0));
float tileymax = min(static_cast<float>(yt + 1), static_cast<float>(bb->y1));
float dy = tileymax - tileymin;
float dxdyarea = dx * dy * totVol2;
@@ -1513,8 +1513,8 @@ int LivingEntity::getLightColor(float a)
for( int zt = zmin; zt <= zmax; zt++ )
{
float tilezmin = max(static_cast<float>(zt), bb->z0);
float tilezmax = min(static_cast<float>(zt + 1), bb->z1);
float tilezmin = max(static_cast<float>(zt), static_cast<float>(bb->z0));
float tilezmax = min(static_cast<float>(zt + 1), static_cast<float>(bb->z1));
float dz = tilezmax - tilezmin;
float frac = dxdyarea * dz;