From 6f4b8957da47bfc17f7dc92dee8c8436713c82ec Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Sat, 21 Apr 2018 13:37:37 +0200 Subject: [PATCH] Clang --- src/hooks/CreateMove.cpp | 8 +++++--- src/hooks/others.cpp | 7 ++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/hooks/CreateMove.cpp b/src/hooks/CreateMove.cpp index a1913d25..09d8e6cf 100644 --- a/src/hooks/CreateMove.cpp +++ b/src/hooks/CreateMove.cpp @@ -111,7 +111,9 @@ static CatVar debug_projectiles(CV_SWITCH, "debug_projectiles", "0", "Debug Projectiles"); static CatVar fakelag_amount(CV_INT, "fakelag", "0", "Bad Fakelag"); -static CatVar serverlag_amount(CV_INT, "serverlag", "0", "Lag the server by spamming this many voicecommands per tick"); +static CatVar serverlag_amount( + CV_INT, "serverlag", "0", + "Lag the server by spamming this many voicecommands per tick"); CatVar semiauto(CV_INT, "semiauto", "0", "Semiauto"); bool *bSendPackets; @@ -518,8 +520,8 @@ bool CreateMove_hook(void *thisptr, float inputSample, CUserCmd *cmd) g_Settings.last_angles = cmd->viewangles; } if (serverlag_amount) - for (int i = 0; i < (int)serverlag_amount; i++) - g_IEngine->ServerCmd("voicecommand 0 0", false); + for (int i = 0; i < (int) serverlag_amount; i++) + g_IEngine->ServerCmd("voicecommand 0 0", false); // PROF_END("CreateMove"); if (!(cmd->buttons & IN_ATTACK)) diff --git a/src/hooks/others.cpp b/src/hooks/others.cpp index eba2d29e..275bfd19 100644 --- a/src/hooks/others.cpp +++ b/src/hooks/others.cpp @@ -667,7 +667,8 @@ void FrameStageNotify_hook(void *_this, int stage) } } } - if (cathook && stage == FRAME_RENDER_START) { + if (cathook && stage == FRAME_RENDER_START) + { INetChannel *ch; ch = (INetChannel *) g_IEngine->GetNetChannelInfo(); if (ch && !hooks::IsHooked((void *) ch)) @@ -680,9 +681,9 @@ void FrameStageNotify_hook(void *_this, int stage) hooks::netchannel.HookMethod((void *) Shutdown_hook, offsets::Shutdown()); hooks::netchannel.Apply(); - #if ENABLE_IPC +#if ENABLE_IPC ipc::UpdateServerAddress(); - #endif +#endif } } if (cathook && !g_Settings.bInvalid && stage == FRAME_RENDER_START)