mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Prot fix
This commit is contained in:
parent
d1c373420b
commit
8cafd6814f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue