mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #3100
3100: Fix offline client that is not in menu r=heinrich5991 a=Jupeyy E.g. popups like "ddnet-info.json" failed will cause weird NaN glitches, bcs the impl relys on ChangePosition to clean movetime and animation start Co-authored-by: Jupeyy <jupjopjap@gmail.com>
This commit is contained in:
commit
9e060d78b0
|
@ -339,12 +339,19 @@ bool CMenuBackground::Render()
|
|||
XVal = pow(XVal, 7.0f);
|
||||
|
||||
m_Camera.m_Center = TargetPos + Dir * (XVal * Distance);
|
||||
if(m_CurrentPosition < 0)
|
||||
{
|
||||
m_AnimationStartPos = m_Camera.m_Center;
|
||||
m_MoveTime = 0.0f;
|
||||
}
|
||||
|
||||
m_ChangedPosition = false;
|
||||
}
|
||||
|
||||
CMapLayers::OnRender();
|
||||
|
||||
m_CurrentPosition = -1;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue