Fix some formatting in src/game/server/entities/character.cpp

This commit is contained in:
heinrich5991 2019-07-31 21:08:16 +02:00
parent ef32fc4bed
commit 947b5e7936

View file

@ -2161,10 +2161,12 @@ bool CCharacter::Freeze(int Seconds)
if (m_FreezeTick < Server()->Tick() - Server()->TickSpeed() || Seconds == -1)
{
for(int i = 0; i < NUM_WEAPONS; i++)
{
if(m_aWeapons[i].m_Got)
{
m_aWeapons[i].m_Ammo = 0;
}
}
m_Armor = 0;
m_FreezeTime = Seconds == -1 ? Seconds : Seconds * Server()->TickSpeed();
m_FreezeTick = Server()->Tick();