1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-17 10:21:11 +00:00

Merge branch 'plz_no_particles' into 'master'

Hopefully fix #6353 once and for all

Closes #6353

See merge request OpenMW/openmw!1433
This commit is contained in:
psi29a 2021-11-30 15:57:38 +00:00
commit 12167291a3

View File

@ -11,7 +11,7 @@ namespace
// Round value to prevent precision issues // Round value to prevent precision issues
void truncate(float& value) void truncate(float& value)
{ {
value = std::roundf(value * 1024.f) / 1024.f; value = static_cast<int>(value * 1024.f) / 1024.f;
} }
} }