mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-20 15:40:32 +00:00
Cleanup(columnimp): Use std::clamp to limit race scaling
This commit is contained in:
parent
54e90b4ac2
commit
54f4c69d37
@ -586,7 +586,7 @@ namespace CSMWorld
|
||||
{
|
||||
ESXRecordT record2 = record.get();
|
||||
|
||||
float bodyAttr = std::max(0.5f, std::min(2.0f, data.toFloat()));
|
||||
float bodyAttr = std::clamp(data.toFloat(), 0.5f, 2.0f);
|
||||
|
||||
if (mWeight)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user