No need for <algorithm>

This commit is contained in:
Learath 2019-06-13 23:24:06 +02:00
parent 4f665a904b
commit efbc05c9a8

View file

@ -12,8 +12,6 @@
#include "gamemodes/DDRace.h"
#include <time.h>
#include <algorithm>
MACRO_ALLOC_POOL_ID_IMPL(CPlayer, MAX_CLIENTS)
IServer *CPlayer::Server() const { return m_pGameServer->Server(); }
@ -199,7 +197,7 @@ void CPlayer::Tick()
if(!GameServer()->m_World.m_Paused)
{
int EarliestRespawnTick = m_PreviousDieTick+Server()->TickSpeed()*3;
int RespawnTick = std::max(m_DieTick, EarliestRespawnTick);
int RespawnTick = maximum(m_DieTick, EarliestRespawnTick);
if(!m_pCharacter && RespawnTick <= Server()->Tick())
m_Spawning = true;