1784: No need for <algorithm> r=heinrich5991 a=Learath2



Co-authored-by: Learath <learath2@gmail.com>
This commit is contained in:
bors[bot] 2019-06-13 21:29:08 +00:00
commit 3d2125c13a

View file

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