mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-12 19:18:20 +00:00
release hook in mods that do not allow inputs while chatting
This commit is contained in:
parent
2cb47583b8
commit
71669e3427
|
@ -519,6 +519,8 @@ void CCharacter::OnDirectInput(CNetObj_PlayerInput *pNewInput)
|
||||||
{
|
{
|
||||||
// reset input
|
// reset input
|
||||||
ResetInput();
|
ResetInput();
|
||||||
|
// mods that do not allow inputs to be held while chatting also do not allow to hold hook
|
||||||
|
m_Input.m_Hook = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -542,7 +544,7 @@ void CCharacter::OnDirectInput(CNetObj_PlayerInput *pNewInput)
|
||||||
void CCharacter::ResetInput()
|
void CCharacter::ResetInput()
|
||||||
{
|
{
|
||||||
m_Input.m_Direction = 0;
|
m_Input.m_Direction = 0;
|
||||||
//m_Input.m_Hook = 0;
|
// m_Input.m_Hook = 0;
|
||||||
// simulate releasing the fire button
|
// simulate releasing the fire button
|
||||||
if((m_Input.m_Fire & 1) != 0)
|
if((m_Input.m_Fire & 1) != 0)
|
||||||
m_Input.m_Fire++;
|
m_Input.m_Fire++;
|
||||||
|
|
Loading…
Reference in a new issue