mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix clang-format
This commit is contained in:
parent
fef7af806c
commit
18d9997348
|
@ -4,9 +4,9 @@
|
|||
|
||||
#if defined(BACKEND_AS_OPENGL_ES) || !defined(CONF_BACKEND_OPENGL_ES)
|
||||
|
||||
#include <cstdio>
|
||||
#include <engine/shared/linereader.h>
|
||||
#include <engine/storage.h>
|
||||
#include <cstdio>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -193,8 +193,7 @@ void CCommandProcessorFragment_SDL::Cmd_WindowDestroyNtf(const CCommandBuffer::S
|
|||
#endif
|
||||
}
|
||||
|
||||
CCommandProcessorFragment_SDL::CCommandProcessorFragment_SDL()
|
||||
= default;
|
||||
CCommandProcessorFragment_SDL::CCommandProcessorFragment_SDL() = default;
|
||||
|
||||
bool CCommandProcessorFragment_SDL::RunCommand(const CCommandBuffer::SCommand *pBaseCommand)
|
||||
{
|
||||
|
|
|
@ -201,8 +201,7 @@ CHead::CHead(const char *pUrl, CTimeout Timeout, HTTPLOG LogProgress) :
|
|||
{
|
||||
}
|
||||
|
||||
CHead::~CHead()
|
||||
= default;
|
||||
CHead::~CHead() = default;
|
||||
|
||||
bool CHead::AfterInit(void *pCurl)
|
||||
{
|
||||
|
|
|
@ -195,8 +195,7 @@ CAntibot::CAntibot() :
|
|||
m_pServer(0), m_pConsole(0), m_pGameServer(0), m_Initialized(false)
|
||||
{
|
||||
}
|
||||
CAntibot::~CAntibot()
|
||||
= default;
|
||||
CAntibot::~CAntibot() = default;
|
||||
void CAntibot::Init()
|
||||
{
|
||||
m_pServer = Kernel()->RequestInterface<IServer>();
|
||||
|
|
|
@ -63,8 +63,7 @@ CDbConnectionPool::CDbConnectionPool() :
|
|||
thread_init_and_detach(CDbConnectionPool::Worker, this, "database worker thread");
|
||||
}
|
||||
|
||||
CDbConnectionPool::~CDbConnectionPool()
|
||||
= default;
|
||||
CDbConnectionPool::~CDbConnectionPool() = default;
|
||||
|
||||
void CDbConnectionPool::Print(IConsole *pConsole, Mode DatabaseMode)
|
||||
{
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
#include <engine/shared/network.h>
|
||||
#include <engine/storage.h>
|
||||
|
||||
CHostLookup::CHostLookup()
|
||||
= default;
|
||||
CHostLookup::CHostLookup() = default;
|
||||
|
||||
CHostLookup::CHostLookup(const char *pHostname, int Nettype)
|
||||
{
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
#include <engine/shared/config.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <cstdlib>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -18,8 +18,7 @@ IJob &IJob::operator=(const IJob &Other)
|
|||
return *this;
|
||||
}
|
||||
|
||||
IJob::~IJob()
|
||||
= default;
|
||||
IJob::~IJob() = default;
|
||||
|
||||
int IJob::Status()
|
||||
{
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
#include "map.h"
|
||||
#include <engine/storage.h>
|
||||
|
||||
CMap::CMap()
|
||||
= default;
|
||||
CMap::CMap() = default;
|
||||
|
||||
void *CMap::GetData(int Index)
|
||||
{
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
#include <base/tl/sorted_array.h>
|
||||
|
||||
#include <climits>
|
||||
#include <limits>
|
||||
#include <cmath>
|
||||
#include <limits>
|
||||
|
||||
#include <game/generated/client_data.h>
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
||||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
||||
#include <base/math.h>
|
||||
#include <engine/graphics.h>
|
||||
#include <cmath>
|
||||
#include <engine/graphics.h>
|
||||
|
||||
#include "render.h"
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
#include <antibot/antibot_data.h>
|
||||
|
||||
#include <cmath>
|
||||
#include <engine/kernel.h>
|
||||
#include <engine/map.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <game/collision.h>
|
||||
#include <game/layers.h>
|
||||
|
|
|
@ -9,8 +9,7 @@ CLayerGame::CLayerGame(int w, int h) :
|
|||
m_Game = 1;
|
||||
}
|
||||
|
||||
CLayerGame::~CLayerGame()
|
||||
= default;
|
||||
CLayerGame::~CLayerGame() = default;
|
||||
|
||||
CTile CLayerGame::GetTile(int x, int y)
|
||||
{
|
||||
|
|
|
@ -17,8 +17,7 @@ CLayerQuads::CLayerQuads()
|
|||
m_Image = -1;
|
||||
}
|
||||
|
||||
CLayerQuads::~CLayerQuads()
|
||||
= default;
|
||||
CLayerQuads::~CLayerQuads() = default;
|
||||
|
||||
void CLayerQuads::Render(bool QuadPicker)
|
||||
{
|
||||
|
|
|
@ -12,8 +12,7 @@ CLayerSounds::CLayerSounds()
|
|||
m_Sound = -1;
|
||||
}
|
||||
|
||||
CLayerSounds::~CLayerSounds()
|
||||
= default;
|
||||
CLayerSounds::~CLayerSounds() = default;
|
||||
|
||||
void CLayerSounds::Render(bool Tileset)
|
||||
{
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include "teeinfo.h"
|
||||
#include <antibot/antibot_data.h>
|
||||
#include <base/math.h>
|
||||
#include <cstring>
|
||||
#include <engine/console.h>
|
||||
#include <engine/engine.h>
|
||||
#include <engine/map.h>
|
||||
|
@ -18,7 +19,6 @@
|
|||
#include <game/collision.h>
|
||||
#include <game/gamecore.h>
|
||||
#include <game/version.h>
|
||||
#include <cstring>
|
||||
|
||||
#include <game/generated/protocol7.h>
|
||||
#include <game/generated/protocolglue.h>
|
||||
|
|
|
@ -45,8 +45,7 @@ IGameController::IGameController(class CGameContext *pGameServer)
|
|||
m_CurrentRecord = 0;
|
||||
}
|
||||
|
||||
IGameController::~IGameController()
|
||||
= default;
|
||||
IGameController::~IGameController() = default;
|
||||
|
||||
void IGameController::DoActivityCheck()
|
||||
{
|
||||
|
|
|
@ -9,10 +9,7 @@
|
|||
#include "teams.h"
|
||||
#include <engine/shared/config.h>
|
||||
|
||||
CSaveTee::CSaveTee()
|
||||
= default;
|
||||
|
||||
|
||||
CSaveTee::CSaveTee() = default;
|
||||
|
||||
void CSaveTee::Save(CCharacter *pChr)
|
||||
{
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
||||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
||||
#include <base/system.h>
|
||||
#include <cstdlib> //rand
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/shared/network.h>
|
||||
#include <mastersrv/mastersrv.h>
|
||||
#include <cstdlib> //rand
|
||||
|
||||
CNetServer *pNet;
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#include <algorithm>
|
||||
#include <base/math.h>
|
||||
#include <base/system.h>
|
||||
#include <cstdint>
|
||||
#include <engine/shared/datafile.h>
|
||||
#include <engine/shared/image_manipulation.h>
|
||||
#include <engine/storage.h>
|
||||
#include <game/mapitems.h>
|
||||
#include <cstdint>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
|
|
Loading…
Reference in a new issue