mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
Merge pull request #7743 from furo321/hookduration-07
Fix players on 0.7 becoming invisible when `m_HookTick` is negative.
This commit is contained in:
commit
9c8a081692
|
@ -1099,6 +1099,10 @@ void CCharacter::SnapCharacter(int SnappingClient, int ID)
|
||||||
pCharacter->m_Angle -= (int)(2.0f * pi * 256.0f);
|
pCharacter->m_Angle -= (int)(2.0f * pi * 256.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// m_HookTick can be negative when using the hook_duration tune, which 0.7 clients
|
||||||
|
// will consider invalid. https://github.com/ddnet/ddnet/issues/3915
|
||||||
|
pCharacter->m_HookTick = maximum(0, pCharacter->m_HookTick);
|
||||||
|
|
||||||
pCharacter->m_Tick = Tick;
|
pCharacter->m_Tick = Tick;
|
||||||
pCharacter->m_Emote = Emote;
|
pCharacter->m_Emote = Emote;
|
||||||
pCharacter->m_AttackTick = m_AttackTick;
|
pCharacter->m_AttackTick = m_AttackTick;
|
||||||
|
|
Loading…
Reference in a new issue