diff --git a/include/CDumper.hpp b/include/CDumper.hpp index 46143cd7..a7450ac1 100755 --- a/include/CDumper.hpp +++ b/include/CDumper.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef CDUMPER_HPP_ -#define CDUMPER_HPP_ +#pragma once #include #include @@ -116,5 +115,3 @@ public: private: std::fstream m_file; }; - -#endif /* CDUMPER_HPP_ */ diff --git a/include/chatstack.hpp b/include/chatstack.hpp index b8193341..d0bcaa7f 100755 --- a/include/chatstack.hpp +++ b/include/chatstack.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef CHATSTACK_HPP_ -#define CHATSTACK_HPP_ +#pragma once #define CHATSTACK_INTERVAL 0.8f @@ -30,5 +29,3 @@ void Reset(); extern std::stack stack; extern float last_say; } - -#endif /* CHATSTACK_HPP_ */ diff --git a/include/classinfo/dump.hpp b/include/classinfo/dump.hpp index 5d5fad4b..20841f26 100755 --- a/include/classinfo/dump.hpp +++ b/include/classinfo/dump.hpp @@ -5,9 +5,6 @@ * Author: nullifiedcat */ -#ifndef DUMP_HPP_ -#define DUMP_HPP_ +#pragma once void PerformClassDump(); - -#endif /* DUMP_HPP_ */ diff --git a/include/conditions.hpp b/include/conditions.hpp index 0d5967e4..5020ed20 100755 --- a/include/conditions.hpp +++ b/include/conditions.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef CONDITIONS_HPP_ -#define CONDITIONS_HPP_ +#pragma once #include #include "netvars.hpp" @@ -314,6 +313,4 @@ template inline void RemoveCondition(CachedEntity *ent) CE_VAR(ent, netvar._condition_bits, condition_data_s)); } CondBitSet(CE_VAR(ent, netvar.iCond, condition_data_s)); -} - -#endif /* CONDITIONS_HPP_ */ +} \ No newline at end of file diff --git a/include/crits.hpp b/include/crits.hpp index ec210990..025a1d5c 100755 --- a/include/crits.hpp +++ b/include/crits.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef CRITS_HPP_ -#define CRITS_HPP_ +#pragma once class CUserCmd; class IClientEntity; @@ -42,5 +41,3 @@ bool random_crits_enabled(); extern int *g_PredictionRandomSeed; extern std::unordered_map command_number_mod; - -#endif /* CRITS_HPP_ */ diff --git a/include/cvwrapper.hpp b/include/cvwrapper.hpp index 23a7d356..f27c109f 100755 --- a/include/cvwrapper.hpp +++ b/include/cvwrapper.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef CVWRAPPER_HPP_ -#define CVWRAPPER_HPP_ +#pragma once class ConVar; @@ -189,5 +188,3 @@ std::vector &CatVarList(); void RegisterCatCommands(); void RegisterCatVars(); int GetRebasedCatVarCount(); - -#endif /* CVWRAPPER_HPP_ */ diff --git a/include/entitycache.hpp b/include/entitycache.hpp index c250a389..fe79b49b 100755 --- a/include/entitycache.hpp +++ b/include/entitycache.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef ENTITYCACHE_HPP_ -#define ENTITYCACHE_HPP_ +#pragma once #include "entityhitboxcache.hpp" #include "averager.hpp" @@ -135,6 +134,4 @@ inline CachedEntity &Get(int idx) void Update(); void Invalidate(); extern int max; -} - -#endif /* ENTITYCACHE_HPP_ */ +} \ No newline at end of file diff --git a/include/entityhitboxcache.hpp b/include/entityhitboxcache.hpp index 551ad556..15956378 100755 --- a/include/entityhitboxcache.hpp +++ b/include/entityhitboxcache.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef ENTITYHITBOXCACHE_HPP_ -#define ENTITYHITBOXCACHE_HPP_ +#pragma once #include #include @@ -70,5 +69,3 @@ inline EntityHitboxCache &Get(unsigned i) return array[i]; } } - -#endif /* ENTITYHITBOXCACHE_HPP_ */ diff --git a/include/enums.hpp b/include/enums.hpp index ec8d7785..d9bb8c1b 100755 --- a/include/enums.hpp +++ b/include/enums.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef ENUMS_HPP_ -#define ENUMS_HPP_ +#pragma once enum EntityType { @@ -103,6 +102,4 @@ enum hitbox_t hip_R = 15, knee_R = 16, foot_R = 17 -}; - -#endif /* ENUMS_HPP_ */ +}; \ No newline at end of file diff --git a/include/globals.h b/include/globals.h index 44aaa6bc..b626eeaf 100755 --- a/include/globals.h +++ b/include/globals.h @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef GLOBALS_H_ -#define GLOBALS_H_ +#pragma once #include @@ -54,5 +53,3 @@ class CUserCmd; extern CUserCmd *g_pUserCmd; extern GlobalSettings g_Settings; - -#endif /* GLOBALS_H_ */ diff --git a/include/hack.hpp b/include/hack.hpp index 60441e53..c5437817 100755 --- a/include/hack.hpp +++ b/include/hack.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACK_H_ -#define HACK_H_ +#pragma once class IHack; class CUserCmd; @@ -38,5 +37,3 @@ void Shutdown(); void CC_Cat(const CCommand &args); extern ConCommand *c_Cat; } - -#endif /* HACK_H_ */ diff --git a/include/hacks/Achievement.hpp b/include/hacks/Achievement.hpp index 785a7186..4e2bafa9 100755 --- a/include/hacks/Achievement.hpp +++ b/include/hacks/Achievement.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_ACHIEVEMENT_HPP_ -#define HACKS_ACHIEVEMENT_HPP_ +#pragma once namespace hacks { @@ -20,5 +19,3 @@ void Unlock(); } } } - -#endif /* HACKS_ACHIEVEMENT_HPP_ */ diff --git a/include/hacks/Aimbot.hpp b/include/hacks/Aimbot.hpp index 603794f3..c98d54f8 100755 --- a/include/hacks/Aimbot.hpp +++ b/include/hacks/Aimbot.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HAIMBOT_H_ -#define HAIMBOT_H_ +#pragma once #include "common.hpp" @@ -63,5 +62,3 @@ float EffectiveTargetingRange(); } } } - -#endif /* HAIMBOT_H_ */ diff --git a/include/hacks/AntiAim.hpp b/include/hacks/AntiAim.hpp index e3c7a91f..fb14de2d 100755 --- a/include/hacks/AntiAim.hpp +++ b/include/hacks/AntiAim.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef ANTIAIM_H_ -#define ANTIAIM_H_ +#pragma once class CatVar; class CUserCmd; @@ -39,5 +38,3 @@ void ProcessUserCmd(CUserCmd *cmd); } } } - -#endif /* ANTIAIM_H_ */ diff --git a/include/hacks/AntiBackstab.hpp b/include/hacks/AntiBackstab.hpp index 2e979d81..91f8275a 100755 --- a/include/hacks/AntiBackstab.hpp +++ b/include/hacks/AntiBackstab.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_ANTIBACKSTAB_HPP_ -#define HACKS_ANTIBACKSTAB_HPP_ +#pragma once namespace hacks { @@ -20,5 +19,3 @@ void PaintTraverse(); } } } - -#endif /* HACKS_ANTIBACKSTAB_HPP_ */ diff --git a/include/hacks/AntiDisguise.hpp b/include/hacks/AntiDisguise.hpp index 01e82228..5571a54d 100755 --- a/include/hacks/AntiDisguise.hpp +++ b/include/hacks/AntiDisguise.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_ANTIDISGUISE_HPP_ -#define HACKS_ANTIDISGUISE_HPP_ +#pragma once #include "common.hpp" @@ -23,5 +22,3 @@ void Draw(); } } } - -#endif /* HACKS_ANTIDISGUISE_HPP_ */ diff --git a/include/hacks/AutoBackstab.hpp b/include/hacks/AutoBackstab.hpp index e0154c42..9f5f6ec5 100755 --- a/include/hacks/AutoBackstab.hpp +++ b/include/hacks/AutoBackstab.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_AUTOBACKSTAB_HPP_ -#define HACKS_AUTOBACKSTAB_HPP_ +#pragma once namespace hacks { @@ -20,5 +19,3 @@ const Vector GetWorldSpaceCenter(CachedEntity *ent); } } } - -#endif /* HACKS_AUTOBACKSTAB_HPP_ */ diff --git a/include/hacks/AutoDetonator.hpp b/include/hacks/AutoDetonator.hpp index 6989e523..ab213202 100755 --- a/include/hacks/AutoDetonator.hpp +++ b/include/hacks/AutoDetonator.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat & Lighty */ -#ifndef HACKS_AUTODETONATOR_HPP_ -#define HACKS_AUTODETONATOR_HPP_ +#pragma once #include "common.hpp" @@ -20,5 +19,3 @@ void CreateMove(); } } } - -#endif /* HACKS_AUTODETONATOR_HPP_ */ diff --git a/include/hacks/AutoHeal.hpp b/include/hacks/AutoHeal.hpp index 24e22d75..87ea120b 100755 --- a/include/hacks/AutoHeal.hpp +++ b/include/hacks/AutoHeal.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_AUTOHEAL_HPP_ -#define HACKS_AUTOHEAL_HPP_ +#pragma once #include "common.hpp" @@ -41,5 +40,3 @@ bool CanHeal(int idx); } } } - -#endif /* HACKS_AUTOHEAL_HPP_ */ diff --git a/include/hacks/AutoReflect.hpp b/include/hacks/AutoReflect.hpp index 48653f2d..cfcda97d 100755 --- a/include/hacks/AutoReflect.hpp +++ b/include/hacks/AutoReflect.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_AUTOREFLECT_HPP_ -#define HACKS_AUTOREFLECT_HPP_ +#pragma once #include "common.hpp" @@ -29,5 +28,3 @@ bool IsEntStickyBomb(CachedEntity *ent); } } } - -#endif /* HACKS_AUTOREFLECT_HPP_ */ diff --git a/include/hacks/AutoSticky.hpp b/include/hacks/AutoSticky.hpp index ec32fec3..0bd407fc 100755 --- a/include/hacks/AutoSticky.hpp +++ b/include/hacks/AutoSticky.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_AUTOSTICKY_HPP_ -#define HACKS_AUTOSTICKY_HPP_ +#pragma once #include "common.hpp" @@ -26,5 +25,3 @@ void CreateMove(); } } } - -#endif /* HACKS_AUTOSTICKY_HPP_ */ diff --git a/include/hacks/Bunnyhop.hpp b/include/hacks/Bunnyhop.hpp index c41f9de8..8728b144 100755 --- a/include/hacks/Bunnyhop.hpp +++ b/include/hacks/Bunnyhop.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HBUNNYHOP_H_ -#define HBUNNYHOP_H_ +#pragma once #include "common.hpp" @@ -23,5 +22,3 @@ void CreateMove(); } } } - -#endif /* HBUNNYHOP_H_ */ diff --git a/include/hacks/ESP.hpp b/include/hacks/ESP.hpp index e134434d..319265fd 100755 --- a/include/hacks/ESP.hpp +++ b/include/hacks/ESP.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HESP_H_ -#define HESP_H_ +#pragma once #include "common.hpp" @@ -64,5 +63,3 @@ void ResetEntityStrings(); } } } - -#endif /* HESP_H_ */ diff --git a/include/hacks/KillSay.hpp b/include/hacks/KillSay.hpp index b2eb88dc..820992b0 100755 --- a/include/hacks/KillSay.hpp +++ b/include/hacks/KillSay.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_KILLSAY_HPP_ -#define HACKS_KILLSAY_HPP_ +#pragma once #include "common.hpp" @@ -35,5 +34,3 @@ extern const std::vector builtin_nonecore_mlg; } } } - -#endif /* HACKS_KILLSAY_HPP_ */ diff --git a/include/hacks/LagExploit.hpp b/include/hacks/LagExploit.hpp index ae816ed0..e58cf38c 100755 --- a/include/hacks/LagExploit.hpp +++ b/include/hacks/LagExploit.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_LAGEXPLOIT_HPP_ -#define HACKS_LAGEXPLOIT_HPP_ +#pragma once #include "common.hpp" @@ -26,6 +25,4 @@ void AddExploitTicks(int ticks); bool ExploitActive(); } } -} - -#endif /* HACKS_LAGEXPLOIT_HPP_ */ +} \ No newline at end of file diff --git a/include/hacks/Misc.hpp b/include/hacks/Misc.hpp index 3f70fbe6..6cc680d0 100755 --- a/include/hacks/Misc.hpp +++ b/include/hacks/Misc.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_MISC_HPP_ -#define HACKS_MISC_HPP_ +#pragma once #include "common.hpp" @@ -85,6 +84,4 @@ public: void Schema_Reload(); void CC_Misc_Disconnect_VAC(); -DECLARE_HACK_SINGLETON(Misc);*/ - -#endif /* HACKS_MISC_HPP_ */ +DECLARE_HACK_SINGLETON(Misc);*/ \ No newline at end of file diff --git a/include/hacks/Noisemaker.hpp b/include/hacks/Noisemaker.hpp index f4f32c99..4631b64d 100755 --- a/include/hacks/Noisemaker.hpp +++ b/include/hacks/Noisemaker.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_NOISEMAKER_HPP_ -#define HACKS_NOISEMAKER_HPP_ +#pragma once #include "common.hpp" @@ -23,5 +22,3 @@ void CreateMove(); } } } - -#endif /* HACKS_NOISEMAKER_HPP_ */ diff --git a/include/hacks/Radar.hpp b/include/hacks/Radar.hpp index a83fa1ae..7f87dc45 100755 --- a/include/hacks/Radar.hpp +++ b/include/hacks/Radar.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_RADAR_HPP_ -#define HACKS_RADAR_HPP_ +#pragma once #include "visual/atlas.hpp" #include "common.hpp" @@ -30,5 +29,3 @@ void Draw(); } } } - -#endif /* HACKS_RADAR_HPP_ */ diff --git a/include/hacks/SkinChanger.hpp b/include/hacks/SkinChanger.hpp index 76151786..dadb1542 100755 --- a/include/hacks/SkinChanger.hpp +++ b/include/hacks/SkinChanger.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_SKINCHANGER_HPP_ -#define HACKS_SKINCHANGER_HPP_ +#pragma once #include "common.hpp" @@ -145,5 +144,3 @@ void DrawText(); } } } - -#endif /* HACKS_SKINCHANGER_HPP_ */ diff --git a/include/hacks/Spam.hpp b/include/hacks/Spam.hpp index 76870fdd..03b0eb43 100755 --- a/include/hacks/Spam.hpp +++ b/include/hacks/Spam.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_SPAM_HPP_ -#define HACKS_SPAM_HPP_ +#pragma once #include "common.hpp" @@ -36,5 +35,3 @@ void Reload(); } } } - -#endif /* HACKS_SPAM_HPP_ */ diff --git a/include/hacks/SpyAlert.hpp b/include/hacks/SpyAlert.hpp index d8babf77..ba5869f3 100755 --- a/include/hacks/SpyAlert.hpp +++ b/include/hacks/SpyAlert.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_SPYALERT_HPP_ -#define HACKS_SPYALERT_HPP_ +#pragma once #include "common.hpp" @@ -25,5 +24,3 @@ void Draw(); } } } - -#endif /* HACKS_SPYALERT_HPP_ */ diff --git a/include/hacks/Trigger.hpp b/include/hacks/Trigger.hpp index f8bdd600..9a9ae85a 100755 --- a/include/hacks/Trigger.hpp +++ b/include/hacks/Trigger.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HTRIGGER_H_ -#define HTRIGGER_H_ +#pragma once #include "common.hpp" @@ -31,5 +30,3 @@ bool CheckLineBox(Vector B1, Vector B2, Vector L1, Vector L2, Vector &Hit); } } } - -#endif /* HTRIGGER_H_ */ diff --git a/include/hacks/UberSpam.hpp b/include/hacks/UberSpam.hpp index 4664ddee..cdb58558 100755 --- a/include/hacks/UberSpam.hpp +++ b/include/hacks/UberSpam.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_UBERSPAM_HPP_ -#define HACKS_UBERSPAM_HPP_ +#pragma once #include "common.hpp" @@ -26,5 +25,3 @@ extern const std::vector builtin_nonecore; } } } - -#endif /* HACKS_UBERSPAM_HPP_ */ diff --git a/include/hacks/hacklist.hpp b/include/hacks/hacklist.hpp index bcaa1faa..4ca15bac 100755 --- a/include/hacks/hacklist.hpp +++ b/include/hacks/hacklist.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HACKS_HACKLIST_HPP_ -#define HACKS_HACKLIST_HPP_ +#pragma once #if ENABLE_VISUALS == 1 @@ -45,5 +44,3 @@ #include "Announcer.hpp" #include "Killstreak.hpp" #include "CatBot.hpp" - -#endif /* HACKS_HACKLIST_HPP_ */ diff --git a/include/helpers.hpp b/include/helpers.hpp index 9a6a929a..d4e201d3 100755 --- a/include/helpers.hpp +++ b/include/helpers.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HELPERS_HPP_ -#define HELPERS_HPP_ +#pragma once class CachedEntity; class IClientEntity; @@ -168,5 +167,3 @@ template std::string format(const Args &... args) extern const std::string classes[10]; extern const char *powerups[POWERUP_COUNT]; - -#endif /* HELPERS_HPP_ */ diff --git a/include/hooks.hpp b/include/hooks.hpp index de6dd311..0fc2b157 100755 --- a/include/hooks.hpp +++ b/include/hooks.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HOOKS_H_ -#define HOOKS_H_ +#pragma once // Parts of copypasted code // Credits: Casual_Hacker @@ -66,5 +65,3 @@ extern VMTHook materialsystem; extern VMTHook enginevgui; extern VMTHook vstd; } - -#endif /* HOOKS_H_ */ diff --git a/include/hooks/CreateMove.hpp b/include/hooks/CreateMove.hpp index 50f0eb2c..b5a13f77 100755 --- a/include/hooks/CreateMove.hpp +++ b/include/hooks/CreateMove.hpp @@ -5,12 +5,9 @@ * Author: nullifiedcat */ -#ifndef CREATEMOVE_H_ -#define CREATEMOVE_H_ +#pragma once class CUserCmd; extern bool *bSendPackets; bool CreateMove_hook(void *, float, CUserCmd *); - -#endif /* CREATEMOVE_H_ */ diff --git a/include/hooks/PaintTraverse.hpp b/include/hooks/PaintTraverse.hpp index 32d1fdf3..147ab016 100755 --- a/include/hooks/PaintTraverse.hpp +++ b/include/hooks/PaintTraverse.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef PAINTTRAVERSE_H_ -#define PAINTTRAVERSE_H_ +#pragma once class CatVar; @@ -14,5 +13,3 @@ extern CatVar no_zoom; extern CatVar clean_screenshots; extern CatVar disable_visuals; void PaintTraverse_hook(void *, unsigned int, bool, bool); - -#endif /* PAINTTRAVERSE_H_ */ diff --git a/include/hooks/hookedmethods.hpp b/include/hooks/hookedmethods.hpp index 74069865..fcb003c3 100644 --- a/include/hooks/hookedmethods.hpp +++ b/include/hooks/hookedmethods.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef HOOKEDMETHODS_H_ -#define HOOKEDMETHODS_H_ +#pragma once #include "common.hpp" @@ -70,5 +69,3 @@ void DoSDLUnhooking(); #include "CreateMove.hpp" #include "PaintTraverse.hpp" #include "others.hpp" - -#endif /* HOOKEDMETHODS_H_ */ diff --git a/include/hooks/others.hpp b/include/hooks/others.hpp index aa361fb9..c7919cbd 100755 --- a/include/hooks/others.hpp +++ b/include/hooks/others.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef OTHERS_H_ -#define OTHERS_H_ +#pragma once class INetMessage; class CViewSetup; @@ -60,5 +59,3 @@ typedef IMaterial *(*FindMaterial_t)(void *, const char *, const char *, bool, // extern unsigned int* swapwindow_ptr; // extern unsigned int swapwindow_orig; - -#endif /* OTHERS_H_ */ diff --git a/include/hoovy.hpp b/include/hoovy.hpp index 0cc0c2fd..f0d7eb34 100755 --- a/include/hoovy.hpp +++ b/include/hoovy.hpp @@ -5,10 +5,7 @@ * Author: nullifiedcat */ -#ifndef HOOVY_HPP_ -#define HOOVY_HPP_ +#pragma once void UpdateHoovyList(); bool IsHoovy(CachedEntity *entity); - -#endif /* HOOVY_HPP_ */ diff --git a/include/interfaces.hpp b/include/interfaces.hpp index 2fae3973..36674986 100755 --- a/include/interfaces.hpp +++ b/include/interfaces.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef INTERFACES_HPP_ -#define INTERFACES_HPP_ +#pragma once #include #include @@ -88,5 +87,3 @@ extern IEngineVGui *g_IEngineVGui; extern IUniformRandomStream *g_pUniformStream; void CreateInterfaces(); - -#endif /* INTERFACES_HPP_ */ diff --git a/include/itemtypes.hpp b/include/itemtypes.hpp index 3997785e..ccf57e6e 100755 --- a/include/itemtypes.hpp +++ b/include/itemtypes.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef ITEMTYPES_HPP_ -#define ITEMTYPES_HPP_ +#pragma once #include #include @@ -229,6 +228,4 @@ public: ItemModelMapper mapper; }; -extern ItemManager g_ItemManager; - -#endif /* ITEMTYPES_HPP_ */ +extern ItemManager g_ItemManager; \ No newline at end of file diff --git a/include/localplayer.hpp b/include/localplayer.hpp index b1d53930..5945a4be 100755 --- a/include/localplayer.hpp +++ b/include/localplayer.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef LOCALPLAYER_HPP_ -#define LOCALPLAYER_HPP_ +#pragma once #include @@ -42,6 +41,4 @@ public: #define LOCAL_E g_pLocalPlayer->entity #define LOCAL_W g_pLocalPlayer->weapon() -extern LocalPlayer *g_pLocalPlayer; - -#endif /* LOCALPLAYER_HPP_ */ +extern LocalPlayer *g_pLocalPlayer; \ No newline at end of file diff --git a/include/logging.hpp b/include/logging.hpp index d59acf14..06151652 100755 --- a/include/logging.hpp +++ b/include/logging.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef LOGGING_HPP_ -#define LOGGING_HPP_ +#pragma once #include @@ -26,5 +25,3 @@ void Info(const char *fmt, ...); #ifdef __cplusplus } #endif - -#endif /* LOGGING_HPP_ */ diff --git a/include/menu/CBaseContainer.h b/include/menu/CBaseContainer.h index fb91acc1..031d99a9 100755 --- a/include/menu/CBaseContainer.h +++ b/include/menu/CBaseContainer.h @@ -5,9 +5,8 @@ * Author: nullifiedcat */ -#ifndef CBASECONTAINER_H_ -#define CBASECONTAINER_H_ -#if TEXTMODE_VAC != 1 +#pragma once + #include "menu/CBaseWidget.h" class CBaseContainer : public CBaseWidget, public virtual IWidget @@ -53,5 +52,3 @@ public: std::vector m_children; }; -#endif -#endif /* CBASECONTAINER_H_ */ diff --git a/include/menu/CBaseWidget.h b/include/menu/CBaseWidget.h index 30ae8368..0c5f749a 100755 --- a/include/menu/CBaseWidget.h +++ b/include/menu/CBaseWidget.h @@ -5,19 +5,14 @@ * Author: nullifiedcat */ -#ifndef CBASEWIDGET_H_ -#define CBASEWIDGET_H_ -#if TEXTMODE_VAC != 1 +#pragma once + #include "menu/IWidget.h" -// #include "../beforecheaders.h" #include #include #include #include -// #include "../aftercheaders.h" - #include "logging.hpp" - #include class CBaseWidget : public virtual IWidget @@ -177,5 +172,3 @@ public: KeyValues::AutoDelete m_KeyValues; IWidget *m_pParent; }; -#endif -#endif /* CBASEWIDGET_H_ */ diff --git a/include/menu/CBaseWindow.h b/include/menu/CBaseWindow.h index 504dd681..7936a018 100755 --- a/include/menu/CBaseWindow.h +++ b/include/menu/CBaseWindow.h @@ -5,9 +5,8 @@ * Author: nullifiedcat */ -#ifndef CBASEWINDOW_H_ -#define CBASEWINDOW_H_ -#if TEXTMODE_VAC != 1 +#pragma once + #include "menu/CBaseContainer.h" class CBaseWindow : public CBaseContainer @@ -24,5 +23,3 @@ public: virtual void Draw(int x, int y) override; virtual void MoveChildren() override; }; -#endif -#endif /* CBASEWINDOW_H_ */ diff --git a/include/menu/CTextLabel.h b/include/menu/CTextLabel.h index 4b2a3472..bc74357e 100755 --- a/include/menu/CTextLabel.h +++ b/include/menu/CTextLabel.h @@ -5,9 +5,8 @@ * Author: nullifiedcat */ -#ifndef CTEXTLABEL_H_ -#define CTEXTLABEL_H_ -#if TEXTMODE_VAC != 1 +#pragma once + #include "menu/CBaseWidget.h" #include "Color.h" @@ -26,5 +25,3 @@ public: virtual void Draw(int x, int y); }; -#endif -#endif /* CTEXTLABEL_H_ */ diff --git a/include/menu/GUI.h b/include/menu/GUI.h index 8a7c4fb4..af701ff3 100755 --- a/include/menu/GUI.h +++ b/include/menu/GUI.h @@ -5,10 +5,8 @@ * Author: nullifiedcat */ -#ifndef GUI_H_ -#define GUI_H_ -#if TEXTMODE_VAC != 1 -#undef RootWindow +#pragma once + class IWidget; class CatVar; @@ -56,6 +54,4 @@ public: int mouse_dy; }; -extern CatGUI *g_pGUI; -#endif -#endif /* GUI_H_ */ +extern CatGUI *g_pGUI; \ No newline at end of file diff --git a/include/menu/IWidget.h b/include/menu/IWidget.h index 4a5ab1c4..4abb3adb 100755 --- a/include/menu/IWidget.h +++ b/include/menu/IWidget.h @@ -5,9 +5,8 @@ * Author: nullifiedcat */ -#ifndef IWIDGET_H_ -#define IWIDGET_H_ -#if TEXTMODE_VAC != 1 +#pragma once + #include #include #include @@ -77,5 +76,3 @@ public: virtual void SetParent(IWidget *) = 0; virtual std::string GetName() = 0; }; -#endif -#endif /* IWIDGET_H_ */ diff --git a/include/menu/guicommon.h b/include/menu/guicommon.h index b54f7e77..a5f5d58e 100755 --- a/include/menu/guicommon.h +++ b/include/menu/guicommon.h @@ -5,11 +5,8 @@ * Author: nullifiedcat */ -#ifndef GUICOMMON_H_ -#define GUICOMMON_H_ -#if TEXTMODE_VAC != 1 +#pragma once + #include "menu/CBaseContainer.h" #include "menu/CBaseWidget.h" #include "menu/GUI.h" -#endif -#endif /* GUICOMMON_H_ */ diff --git a/include/menu/ncc/Item.hpp b/include/menu/ncc/Item.hpp index 4e36a899..047d251c 100755 --- a/include/menu/ncc/Item.hpp +++ b/include/menu/ncc/Item.hpp @@ -5,9 +5,8 @@ * Author: nullifiedcat */ -#ifndef ITEM_HPP_ -#define ITEM_HPP_ -#if TEXTMODE_VAC != 1 +#pragma once + #include "../CBaseWidget.h" namespace menu @@ -31,5 +30,3 @@ public: }; } } -#endif -#endif /* ITEM_HPP_ */ diff --git a/include/menu/ncc/ItemSublist.hpp b/include/menu/ncc/ItemSublist.hpp index d058a4ee..3c949f1b 100755 --- a/include/menu/ncc/ItemSublist.hpp +++ b/include/menu/ncc/ItemSublist.hpp @@ -5,9 +5,7 @@ * Author: nullifiedcat */ -#ifndef ITEMSUBLIST_HPP_ -#define ITEMSUBLIST_HPP_ -#if TEXTMODE_VAC != 1 +#pragma once #include "menu/ncc/Item.hpp" #include "menu/ncc/List.hpp" @@ -40,5 +38,3 @@ public: }; } } -#endif -#endif /* ITEMSUBLIST_HPP_ */ diff --git a/include/menu/ncc/ItemTitle.hpp b/include/menu/ncc/ItemTitle.hpp index d3e9584f..3373effa 100755 --- a/include/menu/ncc/ItemTitle.hpp +++ b/include/menu/ncc/ItemTitle.hpp @@ -5,9 +5,8 @@ * Author: nullifiedcat */ -#ifndef ITEMTITLE_HPP_ -#define ITEMTITLE_HPP_ -#if TEXTMODE_VAC != 1 +#pragma once + #include "menu/ncc/Item.hpp" namespace menu @@ -27,5 +26,3 @@ public: }; } } -#endif -#endif /* ITEMTITLE_HPP_ */ diff --git a/include/menu/ncc/ItemVariable.hpp b/include/menu/ncc/ItemVariable.hpp index 6ef44bc9..d0b56cdf 100755 --- a/include/menu/ncc/ItemVariable.hpp +++ b/include/menu/ncc/ItemVariable.hpp @@ -5,9 +5,8 @@ * Author: nullifiedcat */ -#ifndef ITEMVARIABLE_HPP_ -#define ITEMVARIABLE_HPP_ -#if TEXTMODE_VAC != 1 +#pragma once + #include "menu/ncc/Item.hpp" class CatVar; @@ -38,5 +37,3 @@ public: }; } } -#endif -#endif /* ITEMVARIABLE_HPP_ */ diff --git a/include/menu/ncc/List.hpp b/include/menu/ncc/List.hpp index ecd9acad..4d0f3df4 100755 --- a/include/menu/ncc/List.hpp +++ b/include/menu/ncc/List.hpp @@ -5,9 +5,8 @@ * Author: nullifiedcat */ -#ifndef LIST_HPP_ -#define LIST_HPP_ -#if TEXTMODE_VAC != 1 +#pragma once + #include "../CBaseContainer.h" #include "common.hpp" @@ -66,5 +65,3 @@ public: }; } } -#endif -#endif /* LIST_HPP_ */ diff --git a/include/menu/ncc/Menu.hpp b/include/menu/ncc/Menu.hpp index 896ec119..c40e4bbc 100755 --- a/include/menu/ncc/Menu.hpp +++ b/include/menu/ncc/Menu.hpp @@ -5,9 +5,8 @@ * Author: nullifiedcat */ -#ifndef MENU_HPP_ -#define MENU_HPP_ -#if TEXTMODE_VAC != 1 +#pragma once + #include "visual/drawing.hpp" #include "visual/colors.hpp" @@ -52,5 +51,3 @@ void Init(); List &MainList(); } } -#endif -#endif /* MENU_HPP_ */ diff --git a/include/menu/ncc/PlayerList.hpp b/include/menu/ncc/PlayerList.hpp index ebb2c12b..84497aa1 100755 --- a/include/menu/ncc/PlayerList.hpp +++ b/include/menu/ncc/PlayerList.hpp @@ -5,9 +5,8 @@ * Author: nullifiedcat */ -#ifndef GUI_NCC_PLAYERLIST_HPP_ -#define GUI_NCC_PLAYERLIST_HPP_ -#if TEXTMODE_VAC != 1 +#pragma once + #include "../CBaseContainer.h" #include "menu/ncc/Menu.hpp" namespace menu @@ -32,5 +31,3 @@ public: }; } } -#endif -#endif /* GUI_NCC_PLAYERLIST_HPP_ */ diff --git a/include/menu/ncc/PlayerListEntry.hpp b/include/menu/ncc/PlayerListEntry.hpp index c09e301c..230a1be3 100755 --- a/include/menu/ncc/PlayerListEntry.hpp +++ b/include/menu/ncc/PlayerListEntry.hpp @@ -5,9 +5,8 @@ * Author: nullifiedcat */ -#ifndef PLAYERLISTENTRY_HPP_ -#define PLAYERLISTENTRY_HPP_ -#if TEXTMODE_VAC != 1 +#pragma once + #include "menu/ncc/Menu.hpp" namespace menu @@ -78,5 +77,3 @@ public: } } } -#endif -#endif /* PLAYERLISTENTRY_HPP_ */ diff --git a/include/menu/ncc/Root.hpp b/include/menu/ncc/Root.hpp index 462f23fe..ba699fb0 100755 --- a/include/menu/ncc/Root.hpp +++ b/include/menu/ncc/Root.hpp @@ -5,9 +5,8 @@ * Author: nullifiedcat */ -#ifndef ROOT_HPP_ -#define ROOT_HPP_ -#if TEXTMODE_VAC != 1 +#pragma once + #include "../CBaseWindow.h" namespace menu @@ -27,5 +26,3 @@ public: }; } } -#endif -#endif /* ROOT_HPP_ */ diff --git a/include/menu/ncc/Tooltip.hpp b/include/menu/ncc/Tooltip.hpp index 5bb65e30..5d77fbd4 100755 --- a/include/menu/ncc/Tooltip.hpp +++ b/include/menu/ncc/Tooltip.hpp @@ -5,9 +5,8 @@ * Author: nullifiedcat */ -#ifndef TOOLTIP_HPP_ -#define TOOLTIP_HPP_ -#if TEXTMODE_VAC != 1 +#pragma once + #include "menu/CTextLabel.h" #include "common.hpp" @@ -30,6 +29,4 @@ public: } }; } -} -#endif -#endif /* TOOLTIP_HPP_ */ +} \ No newline at end of file diff --git a/include/netmessage.hpp b/include/netmessage.hpp index 768abc92..7212c14b 100755 --- a/include/netmessage.hpp +++ b/include/netmessage.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef NETMESSAGE_HPP_ -#define NETMESSAGE_HPP_ +#pragma once #include #include @@ -310,5 +309,3 @@ public: private: char m_szCommandBuffer[1024]; // buffer for received messages }; - -#endif /* NETMESSAGE_HPP_ */ diff --git a/include/netvars.hpp b/include/netvars.hpp index d856d99d..4bb5d556 100755 --- a/include/netvars.hpp +++ b/include/netvars.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef NETVARS_HPP_ -#define NETVARS_HPP_ +#pragma once #include @@ -146,5 +145,3 @@ public: }; extern NetVars netvar; - -#endif /* NETVARS_HPP_ */ diff --git a/include/offsets.hpp b/include/offsets.hpp index 27f2a139..8f78a6b7 100755 --- a/include/offsets.hpp +++ b/include/offsets.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef OFFSETS_HPP_ -#define OFFSETS_HPP_ +#pragma once #include #include @@ -166,5 +165,3 @@ struct offsets return PlatformOffset(2, undefined, undefined); } }; - -#endif /* OFFSETS_HPP_ */ diff --git a/include/playerlist.hpp b/include/playerlist.hpp index 946b433d..db4a9b2e 100755 --- a/include/playerlist.hpp +++ b/include/playerlist.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef PLAYERLIST_HPP_ -#define PLAYERLIST_HPP_ +#pragma once #include "common.hpp" @@ -59,5 +58,3 @@ userdata &AccessData(CachedEntity *player); bool IsDefault(unsigned steamid); bool IsDefault(CachedEntity *player); } - -#endif /* PLAYERLIST_HPP_ */ diff --git a/include/playerresource.h b/include/playerresource.h index 10efe582..0991cc04 100755 --- a/include/playerresource.h +++ b/include/playerresource.h @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef PLAYERRESOURCE_H_ -#define PLAYERRESOURCE_H_ +#pragma once class CachedEntity; @@ -24,5 +23,3 @@ public: }; extern TFPlayerResource *g_pPlayerResource; - -#endif /* PLAYERRESOURCE_H_ */ diff --git a/include/prediction.hpp b/include/prediction.hpp index e892e967..e346c2fd 100755 --- a/include/prediction.hpp +++ b/include/prediction.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef PREDICTION_HPP_ -#define PREDICTION_HPP_ +#pragma once #include @@ -33,5 +32,3 @@ void Prediction_PaintTraverse(); float DistanceToGround(CachedEntity *ent); float DistanceToGround(Vector origin); - -#endif /* PREDICTION_HPP_ */ diff --git a/include/profiler.hpp b/include/profiler.hpp index 84e668ff..8c4111f8 100755 --- a/include/profiler.hpp +++ b/include/profiler.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef PROFILER_H_ -#define PROFILER_H_ +#pragma once #include #include @@ -48,5 +47,3 @@ public: #else #define PROF_SECTION(id) #endif - -#endif /* PROFILER_H_ */ diff --git a/include/projlogging.hpp b/include/projlogging.hpp index 15915a6e..e7ab9b17 100755 --- a/include/projlogging.hpp +++ b/include/projlogging.hpp @@ -5,13 +5,11 @@ * Author: nullifiedcat */ -#ifndef PROJLOGGING_HPP_ -#define PROJLOGGING_HPP_ + +#pragma once namespace projectile_logging { void Update(); } - -#endif /* PROJLOGGING_HPP_ */ diff --git a/include/sconvars.hpp b/include/sconvars.hpp index 78233a7d..195e9190 100755 --- a/include/sconvars.hpp +++ b/include/sconvars.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef SCONVARS_HPP_ -#define SCONVARS_HPP_ +#pragma once #include "common.hpp" @@ -28,5 +27,3 @@ public: ConVar *spoof; }; } - -#endif /* SCONVARS_HPP_ */ diff --git a/include/sdk.hpp b/include/sdk.hpp index 03a2fe99..d9b84cce 100755 --- a/include/sdk.hpp +++ b/include/sdk.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef SDK_HPP_ -#define SDK_HPP_ +#pragma once #define private public #define protected public @@ -64,4 +63,5 @@ #include "sdk/HUD.h" #include "sdk/CGameRules.h" -#endif /* SDK_HPP_ */ +#undef private +#undef protected \ No newline at end of file diff --git a/include/sdk/ScreenSpaceEffects.h b/include/sdk/ScreenSpaceEffects.h index d9318a75..8818d482 100755 --- a/include/sdk/ScreenSpaceEffects.h +++ b/include/sdk/ScreenSpaceEffects.h @@ -6,8 +6,7 @@ // //=====================================================================================// -#ifndef SCREENSPACEEFFECTS_H -#define SCREENSPACEEFFECTS_H +#pragma once #ifdef _WIN32 #pragma once @@ -89,4 +88,3 @@ extern CScreenSpaceEffectRegistration **g_ppScreenSpaceRegistrationHead; CScreenSpaceEffectRegistration pEffectName##_reg(#pEffectName, \ &pEffectName##_effect); -#endif diff --git a/include/sdk/igamemovement.h b/include/sdk/igamemovement.h index 8071e6ee..1f3fb07d 100755 --- a/include/sdk/igamemovement.h +++ b/include/sdk/igamemovement.h @@ -7,8 +7,7 @@ // $NoKeywords: $ //=============================================================================// -#if !defined(IGAMEMOVEMENT_H) -#define IGAMEMOVEMENT_H +#pragma once #ifdef _WIN32 #pragma once @@ -131,5 +130,3 @@ public: virtual Vector GetPlayerMaxs(bool ducked) const = 0; virtual Vector GetPlayerViewOffset(bool ducked) const = 0; }; - -#endif // IGAMEMOVEMENT_H diff --git a/include/sdk/iinput.h b/include/sdk/iinput.h index 87e4d8d8..39bddee6 100755 --- a/include/sdk/iinput.h +++ b/include/sdk/iinput.h @@ -5,8 +5,8 @@ // $NoKeywords: $ // //=============================================================================// -#if !defined(IINPUT_H) -#define IINPUT_H +#pragma once + #ifdef _WIN32 #pragma once #endif @@ -121,5 +121,3 @@ public: }; // extern ::IInput *input; - -#endif // IINPUT_H diff --git a/include/sdk/imaterialsystemfixed.h b/include/sdk/imaterialsystemfixed.h index efe74928..b9a98f78 100755 --- a/include/sdk/imaterialsystemfixed.h +++ b/include/sdk/imaterialsystemfixed.h @@ -6,8 +6,7 @@ // //===========================================================================// -#ifndef IMATERIALSYSTEMFIXED_H -#define IMATERIALSYSTEMFIXED_H +#pragma once #ifdef _WIN32 #pragma once @@ -622,5 +621,3 @@ public: int mips, ImageFormat fmt, int srcBufferSize, byte *srcBits, int nFlags) = 0; }; - -#endif // IMATERIALSYSTEMFIXED_H diff --git a/include/sdk/in_buttons.h b/include/sdk/in_buttons.h index 9b6ed0ca..d35ba36d 100755 --- a/include/sdk/in_buttons.h +++ b/include/sdk/in_buttons.h @@ -5,8 +5,8 @@ // $NoKeywords: $ // //=============================================================================// -#ifndef IN_BUTTONS_H -#define IN_BUTTONS_H +#pragma once + #ifdef _WIN32 #pragma once #endif @@ -38,5 +38,3 @@ #define IN_GRENADE1 (1 << 23) // grenade 1 #define IN_GRENADE2 (1 << 24) // grenade 2 #define IN_ATTACK3 (1 << 25) - -#endif // IN_BUTTONS_H diff --git a/include/sharedobj.hpp b/include/sharedobj.hpp index 5de1f85a..965a7ea7 100755 --- a/include/sharedobj.hpp +++ b/include/sharedobj.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef SHAREDOBJ_HPP_ -#define SHAREDOBJ_HPP_ +#pragma once #include #include @@ -53,5 +52,3 @@ SharedObject &libsdl(); void LoadAllSharedObjects(); } - -#endif /* SHAREDOBJ_HPP_ */ diff --git a/include/targethelper.hpp b/include/targethelper.hpp index 13bcc157..582e60ae 100755 --- a/include/targethelper.hpp +++ b/include/targethelper.hpp @@ -5,11 +5,8 @@ * Author: nullifiedcat */ -#ifndef TARGETHELPER_HPP_ -#define TARGETHELPER_HPP_ +#pragma once class CachedEntity; -int GetScoreForEntity(CachedEntity *entity); - -#endif /* TARGETHELPER_HPP_ */ +int GetScoreForEntity(CachedEntity *entity); \ No newline at end of file diff --git a/include/textfile.hpp b/include/textfile.hpp index f0ea7812..bb6740de 100755 --- a/include/textfile.hpp +++ b/include/textfile.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef TEXTFILE_HPP_ -#define TEXTFILE_HPP_ +#pragma once #include #include @@ -23,5 +22,3 @@ public: public: std::vector lines; }; - -#endif /* TEXTFILE_HPP_ */ diff --git a/include/trace.hpp b/include/trace.hpp index 44d56f27..8a0c5dc7 100755 --- a/include/trace.hpp +++ b/include/trace.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef TRACE_HPP_ -#define TRACE_HPP_ +#pragma once #include @@ -62,5 +61,3 @@ extern FilterDefault filter_default; extern FilterNoPlayer filter_no_player; extern FilterPenetration filter_penetration; } - -#endif /* TRACE_HPP_ */ diff --git a/include/usercmd.hpp b/include/usercmd.hpp index 0a56a19c..6608cabf 100755 --- a/include/usercmd.hpp +++ b/include/usercmd.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef USERCMD_HPP_ -#define USERCMD_HPP_ +#pragma once #include @@ -31,5 +30,3 @@ public: short mousedy; bool hasbeenpredicted; }; - -#endif /* USERCMD_HPP_ */ diff --git a/include/velocity.hpp b/include/velocity.hpp index 1bb33249..365c52f4 100755 --- a/include/velocity.hpp +++ b/include/velocity.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef VELOCITY_HPP_ -#define VELOCITY_HPP_ +#pragma once #include "common.hpp" @@ -17,6 +16,4 @@ typedef std::function EstimateAbsVelocity_t; extern EstimateAbsVelocity_t EstimateAbsVelocity; void Init(); -} - -#endif /* VELOCITY_HPP_ */ +} \ No newline at end of file diff --git a/include/vfunc.hpp b/include/vfunc.hpp index 5fdab957..62b80101 100755 --- a/include/vfunc.hpp +++ b/include/vfunc.hpp @@ -5,14 +5,11 @@ * Author: nullifiedcat */ -#ifndef VFUNC_HPP_ -#define VFUNC_HPP_ +#pragma once template inline F vfunc(void *thisptr, uintptr_t idx, uintptr_t offset = 0) { void **vmt = *reinterpret_cast(uintptr_t(thisptr) + offset); return reinterpret_cast((vmt)[idx]); -} - -#endif /* VFUNC_HPP_ */ +} \ No newline at end of file diff --git a/include/visual/EffectChams.hpp b/include/visual/EffectChams.hpp index 22e6eaec..6c214141 100644 --- a/include/visual/EffectChams.hpp +++ b/include/visual/EffectChams.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef EFFECTCHAMS_HPP_ -#define EFFECTCHAMS_HPP_ +#pragma once #include "common.hpp" #include "sdk/ScreenSpaceEffects.h" @@ -55,6 +54,4 @@ public: extern EffectChams g_EffectChams; extern CScreenSpaceEffectRegistration *g_pEffectChams; -} - -#endif /* EFFECTCHAMS_HPP_ */ +} \ No newline at end of file diff --git a/include/visual/EffectGlow.hpp b/include/visual/EffectGlow.hpp index 386fe9a4..32aef158 100755 --- a/include/visual/EffectGlow.hpp +++ b/include/visual/EffectGlow.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef EFFECTGLOW_HPP_ -#define EFFECTGLOW_HPP_ +#pragma once #include "common.hpp" #include "sdk.hpp" @@ -59,5 +58,3 @@ public: extern EffectGlow g_EffectGlow; extern CScreenSpaceEffectRegistration *g_pEffectGlow; } - -#endif /* EFFECTGLOW_HPP_ */ diff --git a/include/visual/atlas.hpp b/include/visual/atlas.hpp index 02cdcac9..f214c3ea 100755 --- a/include/visual/atlas.hpp +++ b/include/visual/atlas.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef ATLAS_HPP_ -#define ATLAS_HPP_ +#pragma once #include "common.hpp" #include "visual/drawex.hpp" @@ -52,5 +51,3 @@ public: texture_atlas &atlas(); } - -#endif /* ATLAS_HPP_ */ diff --git a/include/visual/colors.hpp b/include/visual/colors.hpp index ed041d4f..31637de7 100755 --- a/include/visual/colors.hpp +++ b/include/visual/colors.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef COLORS_HPP_ -#define COLORS_HPP_ +#pragma once class CachedEntity; @@ -147,5 +146,3 @@ rgba_t EntityF(CachedEntity *ent); } using rgba_t = colors::rgba_t; - -#endif /* COLORS_HPP_ */ diff --git a/include/visual/drawing.hpp b/include/visual/drawing.hpp index 488174fa..f12449b2 100755 --- a/include/visual/drawing.hpp +++ b/include/visual/drawing.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef DRAWING_HPP_ -#define DRAWING_HPP_ +#pragma once #include "common.hpp" @@ -68,5 +67,3 @@ void UpdateWTS(); bool WorldToScreen(const Vector &origin, Vector &screen); bool EntityCenterToScreen(CachedEntity *entity, Vector &out); } - -#endif /* DRAWING_HPP_ */ diff --git a/include/visual/drawmgr.hpp b/include/visual/drawmgr.hpp index 4331862e..5bddcb22 100755 --- a/include/visual/drawmgr.hpp +++ b/include/visual/drawmgr.hpp @@ -5,8 +5,7 @@ * Author: nullifiedcat */ -#ifndef DRAWMGR_HPP_ -#define DRAWMGR_HPP_ +#pragma once #include @@ -17,5 +16,3 @@ void render_cheat_visuals(); void BeginCheatVisuals(); void DrawCheatVisuals(); void EndCheatVisuals(); - -#endif /* DRAWMGR_HPP_ */