1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-26 06:40:22 +00:00

Merge branch 'lolcatmap' into 'master'

Fix stupid typo

Closes #6403

See merge request OpenMW/openmw!1376
This commit is contained in:
psi29a 2021-11-10 07:51:04 +00:00
commit d914cda347

View File

@ -647,8 +647,7 @@ void LocalMap::updatePlayer (const osg::Vec3f& position, const osg::Quat& orient
uint32_t clr = *(uint32_t*)data;
uint8_t alpha = (clr >> 24);
alpha = std::min( alpha, (uint8_t) (std::clamp((sqrDist/sqrExploreRadius)*255, 0.f, 1.f)));
alpha = std::min(alpha, (uint8_t)(std::clamp(sqrDist/sqrExploreRadius, 0.f, 1.f) * 255));
uint32_t val = (uint32_t) (alpha << 24);
if ( *data != val)
{