mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
No need for <algorithm>
This commit is contained in:
parent
4f665a904b
commit
efbc05c9a8
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue