Skip to content

Commit 6f26c2a

Browse files
committed
Apply win-apply-clang-format.bat
1 parent 39ccaef commit 6f26c2a

29 files changed

+115
-115
lines changed

Client/core/CLanguageSelector.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,7 @@ void CLanguageSelector::DoPulse()
257257
pItem->fFocusEffectPos += Clamp(-fMaxAmount, pItem->fFocusEffectTarget - pItem->fFocusEffectPos, fMaxAmount);
258258

259259
// Move label
260-
CVector2D vecLabelZoomPos =
261-
pItem->vecLabelInitialPos + CVector2D(pItem->vecLabelInitialSize.fX * pItem->fFocusEffectPos * 0.05f, 0);
260+
CVector2D vecLabelZoomPos = pItem->vecLabelInitialPos + CVector2D(pItem->vecLabelInitialSize.fX * pItem->fFocusEffectPos * 0.05f, 0);
262261
pItem->pLabel->SetPosition(vecLabelZoomPos);
263262
}
264263
}

Client/core/Graphics/CTileBatcher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ void CTileBatcher::AddTile(float fX1, float fY1, float fX2, float fY2, float fU1
280280

281281
uint uiTessellationX = 1;
282282
uint uiTessellationY = 1;
283-
bool bUseCustomMatrices{ false };
283+
bool bUseCustomMatrices{false};
284284

285285
// Get settings from shader
286286
if (CShaderInstance* pShaderInstance = DynamicCast<CShaderInstance>(pMaterial))

Client/game_sa/CRenderWareSA.ShaderSupport.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
#include "CRenderWareSA.h"
1515

1616
#ifdef MTA_DEBUG
17-
// Comment out the lines below for your desired debug options
18-
// #define SHADER_DEBUG_CHECKS // Do lots of validation which can slow a debug build
19-
// #define SHADER_DEBUG_OUTPUT // Output lots of debug strings
17+
// Comment out the lines below for your desired debug options
18+
// #define SHADER_DEBUG_CHECKS // Do lots of validation which can slow a debug build
19+
// #define SHADER_DEBUG_OUTPUT // Output lots of debug strings
2020
#endif
2121

2222
// Various dodgy pointer values

Client/mods/deathmatch/ClientCommands.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void COMMAND_ServerInfo(const char* szCmdLine);
4646
// DISABLE THESE BEFORE RELEASE
4747
#ifdef MTA_DEBUG
4848
void COMMAND_ShowSyncData(const char* szCmdLine);
49-
// void COMMAND_DumpPlayers ( const char* szCmdLine );
49+
// void COMMAND_DumpPlayers ( const char* szCmdLine );
5050
#endif
5151

5252
#if defined(MTA_DEBUG) || defined(MTA_BETA)

Client/mods/deathmatch/logic/luadefs/CLuaDrawingDefs.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,25 +1729,25 @@ int CLuaDrawingDefs::DxGetStatus(lua_State* luaVM)
17291729
lua_settable(luaVM, -3);
17301730

17311731
lua::Push(luaVM, "SettingDebugMode");
1732-
lua::Push(luaVM, []{
1732+
lua::Push(luaVM, [] {
17331733
switch (g_pCore->GetDiagnosticDebug())
17341734
{
1735-
case EDiagnosticDebug::GRAPHICS_6734:
1736-
return "#6734 Graphics";
1737-
case EDiagnosticDebug::D3D_6732:
1738-
return "#6732 D3D";
1739-
case EDiagnosticDebug::LOG_TIMING_0000:
1740-
return "#0000 Log timing";
1741-
case EDiagnosticDebug::JOYSTICK_0000:
1742-
return "#0000 Joystick";
1743-
case EDiagnosticDebug::LUA_TRACE_0000:
1744-
return "#0000 Lua trace";
1745-
case EDiagnosticDebug::RESIZE_ALWAYS_0000:
1746-
return "#0000 Resize always";
1747-
case EDiagnosticDebug::RESIZE_NEVER_0000:
1748-
return "#0000 Resize never";
1749-
default:
1750-
return "Default";
1735+
case EDiagnosticDebug::GRAPHICS_6734:
1736+
return "#6734 Graphics";
1737+
case EDiagnosticDebug::D3D_6732:
1738+
return "#6732 D3D";
1739+
case EDiagnosticDebug::LOG_TIMING_0000:
1740+
return "#0000 Log timing";
1741+
case EDiagnosticDebug::JOYSTICK_0000:
1742+
return "#0000 Joystick";
1743+
case EDiagnosticDebug::LUA_TRACE_0000:
1744+
return "#0000 Lua trace";
1745+
case EDiagnosticDebug::RESIZE_ALWAYS_0000:
1746+
return "#0000 Resize always";
1747+
case EDiagnosticDebug::RESIZE_NEVER_0000:
1748+
return "#0000 Resize never";
1749+
default:
1750+
return "Default";
17511751
}
17521752
}());
17531753
lua_settable(luaVM, -3);

Client/sdk/game/CStreaming.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ class CStreaming
4343
virtual uint32 GetStreamingBufferSize() = 0;
4444
virtual void MakeSpaceFor(std::uint32_t memoryToCleanInBytes) = 0;
4545
virtual std::uint32_t GetMemoryUsed() const = 0;
46-
virtual void RemoveBigBuildings() = 0;
46+
virtual void RemoveBigBuildings() = 0;
4747
};

Client/sdk/ijsify.h

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -81,45 +81,45 @@ extern DWORD* g_Table;
8181
extern DWORD* g_TableSize;
8282
extern DWORD g_dwTable;
8383

84-
/*
85-
inline void* __cdecl operator new ( unsigned int uiSize )
86-
{
87-
DWORD dwOld, dwData;
84+
/*
85+
inline void* __cdecl operator new ( unsigned int uiSize )
86+
{
87+
DWORD dwOld, dwData;
8888
89-
if ( !g_bBoundsChecker ) {
90-
dwData = (DWORD)HeapAlloc (GetProcessHeap(), HEAP_ZERO_MEMORY, uiSize);
91-
VirtualProtect ( (void*)dwData, uiSize, PAGE_EXECUTE_READWRITE, &dwOld );
92-
return (void*)dwData;
93-
}
94-
// define the guard bytes
95-
DWORD dwGuardBegin = 0xBEEFFDFD;
96-
WORD wGuardEnd = 0xDEAC;
89+
if ( !g_bBoundsChecker ) {
90+
dwData = (DWORD)HeapAlloc (GetProcessHeap(), HEAP_ZERO_MEMORY, uiSize);
91+
VirtualProtect ( (void*)dwData, uiSize, PAGE_EXECUTE_READWRITE, &dwOld );
92+
return (void*)dwData;
93+
}
94+
// define the guard bytes
95+
DWORD dwGuardBegin = 0xBEEFFDFD;
96+
WORD wGuardEnd = 0xDEAC;
9797
98-
// allocate ( size + 4 (begin) + 2 (end) )
99-
dwData = (DWORD) HeapAlloc ( GetProcessHeap (), HEAP_ZERO_MEMORY, uiSize + 6 );
98+
// allocate ( size + 4 (begin) + 2 (end) )
99+
dwData = (DWORD) HeapAlloc ( GetProcessHeap (), HEAP_ZERO_MEMORY, uiSize + 6 );
100100
101-
// [0 -> 4] insert begin guard bytes
102-
memcpy ( (void*)(dwData), &dwGuardBegin, 4 );
103-
uiSize += 4;
101+
// [0 -> 4] insert begin guard bytes
102+
memcpy ( (void*)(dwData), &dwGuardBegin, 4 );
103+
uiSize += 4;
104104
105-
// [x -> x+2] insert end guard bytes
106-
memcpy ( (void*)(dwData + uiSize), &wGuardEnd, 2 );
107-
uiSize += 2;
105+
// [x -> x+2] insert end guard bytes
106+
memcpy ( (void*)(dwData + uiSize), &wGuardEnd, 2 );
107+
uiSize += 2;
108108
109-
// set guard protection state
110-
VirtualProtect ( (void*)dwData, uiSize, PAGE_EXECUTE_READWRITE | PAGE_GUARD, &dwOld );
109+
// set guard protection state
110+
VirtualProtect ( (void*)dwData, uiSize, PAGE_EXECUTE_READWRITE | PAGE_GUARD, &dwOld );
111111
112-
g_Table[g_dwTable] = dwData;
113-
g_TableSize[g_dwTable++] = (DWORD)uiSize;
112+
g_Table[g_dwTable] = dwData;
113+
g_TableSize[g_dwTable++] = (DWORD)uiSize;
114114
115-
// and return the correct data pointer
116-
return (void*)( dwData + 4 );
115+
// and return the correct data pointer
116+
return (void*)( dwData + 4 );
117117
118-
};
118+
};
119119
120-
inline void __cdecl operator delete ( void* pData )
121-
{
122-
HeapFree ( GetProcessHeap(), 0, pData );
123-
};
124-
*/
120+
inline void __cdecl operator delete ( void* pData )
121+
{
122+
HeapFree ( GetProcessHeap(), 0, pData );
123+
};
124+
*/
125125
#endif

Server/core/CCrashHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ inline __attribute__((always_inline)) static void SaveBacktraceSummary()
142142
}
143143
}
144144

145-
// Linux/Mac crash callback when using google-breakpad
145+
// Linux/Mac crash callback when using google-breakpad
146146
#ifdef __APPLE__
147147
bool DumpCallback(const char* dump_dir, const char* minidump_id, void* context, bool succeeded)
148148
{

Server/core/CCrashHandlerAPI.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ static LPTOP_LEVEL_EXCEPTION_FILTER g_pfnOrigFilt = NULL;
4646
// The exception handler
4747
LONG __stdcall CrashHandlerExceptionFilter(EXCEPTION_POINTERS* pExPtrs);
4848

49-
/*//////////////////////////////////////////////////////////////////////
50-
Destructor Class
51-
//////////////////////////////////////////////////////////////////////*/
52-
// See the note in MEMDUMPVALIDATOR.CPP about automatic classes.
53-
// Turn off warning : initializers put in library initialization area
49+
/*//////////////////////////////////////////////////////////////////////
50+
Destructor Class
51+
//////////////////////////////////////////////////////////////////////*/
52+
// See the note in MEMDUMPVALIDATOR.CPP about automatic classes.
53+
// Turn off warning : initializers put in library initialization area
5454
#pragma warning (disable : 4073)
5555
#pragma init_seg(lib)
5656
class CleanUpCrashHandler

Server/core/Server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "SharedUtil.hpp"
1717
#include "ErrorCodes.h"
1818
#ifdef WIN_x86
19-
// TODO - 64 bit file hooks
19+
// TODO - 64 bit file hooks
2020
#include "SharedUtil.Win32Utf8FileHooks.hpp"
2121
#endif
2222

0 commit comments

Comments
 (0)