mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-23 03:55:33 +00:00
fix: unglob std::{min, max}, manual stuff
This commit is contained in:
@@ -983,7 +983,7 @@ float GameRenderer::getNightVisionScale(std::shared_ptr<Player> player, float a)
|
||||
}
|
||||
else
|
||||
{
|
||||
float flash = max(0.0f, (float)duration - a);
|
||||
float flash = std::max(0.0f, (float)duration - a);
|
||||
return .7f + Mth::sin(flash * PI * .05f) * .3f; // was: .7 + sin(flash*pi*0.2) * .3
|
||||
}
|
||||
}
|
||||
@@ -2144,7 +2144,7 @@ void GameRenderer::setupFog(int i, float alpha)
|
||||
if (mc->level->dimension->isFoggyAt((int) player->x, (int) player->z))
|
||||
{
|
||||
glFogf(GL_FOG_START, distance * 0.05f);
|
||||
glFogf(GL_FOG_END, min(distance, 16 * 16 * .75f) * .5f);
|
||||
glFogf(GL_FOG_END, std::min(distance, 16 * 16 * .75f) * .5f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user