1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 15:29:55 +00:00

Cap temp disposition change properly

This commit is contained in:
Evil Eye 2021-12-05 18:36:35 +01:00
parent 2dd780b4a3
commit 99bfe024ef

View file

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