mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 14:08:19 +00:00
Merge pull request #8224 from Robyt3/Server-Freeze-Initial-Fix
Fix freeze not working during first 50 server ticks
This commit is contained in:
commit
e142b2d526
|
@ -2167,7 +2167,7 @@ bool CCharacter::Freeze(int Seconds)
|
||||||
{
|
{
|
||||||
if(Seconds <= 0 || m_Core.m_Super || m_FreezeTime > Seconds * Server()->TickSpeed())
|
if(Seconds <= 0 || m_Core.m_Super || m_FreezeTime > Seconds * Server()->TickSpeed())
|
||||||
return false;
|
return false;
|
||||||
if(m_Core.m_FreezeStart < Server()->Tick() - Server()->TickSpeed())
|
if(m_FreezeTime == 0 || m_Core.m_FreezeStart < Server()->Tick() - Server()->TickSpeed())
|
||||||
{
|
{
|
||||||
m_Armor = 0;
|
m_Armor = 0;
|
||||||
m_FreezeTime = Seconds * Server()->TickSpeed();
|
m_FreezeTime = Seconds * Server()->TickSpeed();
|
||||||
|
|
Loading…
Reference in a new issue