1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-28 22:13:21 +00:00

Merge branch 'admirable' into 'master'

Cap temp disposition change properly

See merge request OpenMW/openmw!1459
This commit is contained in:
Alexei Kotov 2021-12-06 10:35:47 +00:00
commit f184201415

View File

@ -718,7 +718,7 @@ namespace MWMechanics
if (currentDisposition + tempChange < 0)
{
cappedDispositionChange = -currentDisposition;
tempChange = 0;
tempChange = cappedDispositionChange;
}
permChange = floor(cappedDispositionChange / fPerTempMult);