mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Process CPlayer::m_DefEmoteReset in CPlayer
This commit is contained in:
parent
ecce5631ed
commit
b36a4fd8c3
|
@ -2193,13 +2193,6 @@ void CCharacter::DDRacePostCoreTick()
|
|||
{
|
||||
m_Time = (float)(Server()->Tick() - m_StartTime) / ((float)Server()->TickSpeed());
|
||||
|
||||
if(m_pPlayer->m_DefEmoteReset >= 0 && m_pPlayer->m_DefEmoteReset <= Server()->Tick())
|
||||
{
|
||||
m_pPlayer->m_DefEmoteReset = -1;
|
||||
m_EmoteType = m_pPlayer->m_DefEmote = EMOTE_NORMAL;
|
||||
m_EmoteStop = -1;
|
||||
}
|
||||
|
||||
if(m_EndlessHook || (m_Super && g_Config.m_SvEndlessSuperHook))
|
||||
m_Core.m_HookTick = 0;
|
||||
|
||||
|
|
|
@ -269,6 +269,12 @@ void CPlayer::Tick()
|
|||
GameServer()->SendTuningParams(m_ClientID, m_TuneZone);
|
||||
}
|
||||
|
||||
if(m_DefEmoteReset >= 0 && m_DefEmoteReset <= Server()->Tick())
|
||||
{
|
||||
m_DefEmoteReset = -1;
|
||||
m_DefEmote = EMOTE_NORMAL;
|
||||
}
|
||||
|
||||
if(m_Halloween && m_pCharacter && !m_pCharacter->IsPaused())
|
||||
{
|
||||
if(1200 - ((Server()->Tick() - m_pCharacter->GetLastAction()) % (1200)) < 5)
|
||||
|
|
Loading…
Reference in a new issue