1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00
This commit is contained in:
Brian Fiete 2020-03-09 06:55:04 -07:00
parent d1c373420b
commit 8cafd6814f

View file

@ -1613,13 +1613,13 @@ namespace BeefPerf
if (mWantOfsY.HasValue)
{
float delta = mWantOfsY.mValue - mOfsY;
float delta = mWantOfsY.Value - mOfsY;
float deltaAdd = delta / 5;
deltaAdd += Math.Sign(delta) * 1;
if (Math.Abs(deltaAdd) >= Math.Abs(delta))
{
mOfsY = mWantOfsY.mValue;
mOfsY = mWantOfsY.Value;
mWantOfsY = null;
}
else