From a8e9c14803c6ee158f8183701f8e9c8601da9983 Mon Sep 17 00:00:00 2001 From: TimePath Date: Sun, 7 Aug 2016 21:02:23 +1000 Subject: [PATCH] #pragma once --- qcsrc/common/anim.qh | 5 +---- qcsrc/common/animdecide.qh | 4 +--- qcsrc/common/campaign_common.qh | 4 +--- qcsrc/common/command/all.qh | 5 +---- qcsrc/common/command/command.qh | 5 +---- qcsrc/common/command/generic.qh | 4 +--- qcsrc/common/command/markup.qh | 4 +--- qcsrc/common/command/rpn.qh | 5 +---- qcsrc/common/constants.qh | 4 +--- qcsrc/common/csqcmodel_settings.qh | 4 +--- qcsrc/common/deathtypes/all.qh | 5 +---- qcsrc/common/effects/all.qh | 5 +---- qcsrc/common/effects/effect.qh | 5 +---- qcsrc/common/effects/qc/all.qh | 5 ++--- qcsrc/common/effects/qc/globalsound.qh | 5 +---- qcsrc/common/effects/qc/rubble.qh | 5 +---- qcsrc/common/ent_cs.qh | 5 +---- qcsrc/common/impulses/all.qh | 5 +---- qcsrc/common/items/all.qh | 5 +---- qcsrc/common/items/inventory.qh | 5 +---- qcsrc/common/items/item.qh | 5 +---- qcsrc/common/items/item/ammo.qh | 5 ++--- qcsrc/common/items/item/armor.qh | 5 ++--- qcsrc/common/items/item/health.qh | 5 ++--- qcsrc/common/items/item/pickup.qh | 6 ++---- qcsrc/common/mapinfo.qh | 4 +--- qcsrc/common/minigames/cl_minigames.qh | 5 +---- qcsrc/common/minigames/cl_minigames_hud.qh | 5 +---- qcsrc/common/minigames/minigames.qh | 5 +---- qcsrc/common/minigames/sv_minigames.qh | 5 +---- qcsrc/common/models/all.qh | 5 +---- qcsrc/common/models/model.qh | 5 +---- qcsrc/common/monsters/all.qh | 5 +---- qcsrc/common/monsters/monster.qh | 5 +---- qcsrc/common/monsters/spawn.qh | 4 +--- qcsrc/common/monsters/sv_monsters.qh | 5 +---- qcsrc/common/net_notice.qh | 5 +---- qcsrc/common/notifications/all.qh | 5 +---- qcsrc/common/physics/movelib.qh | 5 +---- qcsrc/common/physics/movetypes/movetypes.qh | 5 +---- qcsrc/common/physics/player.qh | 5 +---- qcsrc/common/playerstats.qh | 4 +--- qcsrc/common/sounds/all.qh | 4 +--- qcsrc/common/sounds/sound.qh | 5 +---- qcsrc/common/stats.qh | 6 +----- qcsrc/common/t_items.qh | 4 +--- qcsrc/common/teams.qh | 5 +---- qcsrc/common/triggers/func/breakable.qh | 5 +---- qcsrc/common/triggers/func/include.qh | 5 +---- qcsrc/common/triggers/include.qh | 5 +---- qcsrc/common/triggers/platforms.qh | 5 +---- qcsrc/common/triggers/subs.qh | 5 +---- qcsrc/common/triggers/target/include.qh | 5 +---- qcsrc/common/triggers/target/music.qh | 5 +---- qcsrc/common/triggers/teleporters.qh | 5 +---- qcsrc/common/triggers/trigger/impulse.qh | 5 +---- qcsrc/common/triggers/trigger/include.qh | 5 +---- qcsrc/common/triggers/trigger/jumppads.qh | 4 +--- qcsrc/common/triggers/trigger/secret.qh | 4 +--- qcsrc/common/triggers/trigger/swamp.qh | 5 +---- qcsrc/common/triggers/trigger/viewloc.qh | 5 +---- qcsrc/common/triggers/triggers.qh | 5 +---- qcsrc/common/turrets/all.qh | 5 +---- qcsrc/common/turrets/config.qh | 5 +---- qcsrc/common/turrets/sv_turrets.qh | 5 +---- qcsrc/common/turrets/turret.qh | 5 +---- qcsrc/common/turrets/util.qh | 5 +---- qcsrc/common/util.qh | 4 +--- qcsrc/common/vehicles/all.qh | 5 +---- qcsrc/common/vehicles/cl_vehicles.qh | 5 +---- qcsrc/common/vehicles/sv_vehicles.qh | 4 +--- qcsrc/common/vehicles/vehicle.qh | 5 +---- qcsrc/common/vehicles/vehicle/bumblebee.qh | 5 +---- qcsrc/common/vehicles/vehicle/raptor.qh | 5 +---- qcsrc/common/viewloc.qh | 5 +---- qcsrc/common/weapons/all.qh | 5 +---- qcsrc/common/weapons/calculations.qh | 5 ++--- qcsrc/common/weapons/config.qh | 4 +--- qcsrc/common/weapons/weapon.qh | 6 ++---- 79 files changed, 86 insertions(+), 296 deletions(-) diff --git a/qcsrc/common/anim.qh b/qcsrc/common/anim.qh index acf6735f37..84d59720d4 100644 --- a/qcsrc/common/anim.qh +++ b/qcsrc/common/anim.qh @@ -1,5 +1,4 @@ -#ifndef ANIM_H -#define ANIM_H +#pragma once // begin engine fields @@ -46,5 +45,3 @@ void anim_set(entity e, vector anim, bool looping, bool override, bool restart); #define setanim(...) anim_set(__VA_ARGS__) void anim_update(entity e); #define updateanim(...) anim_update(__VA_ARGS__) - -#endif diff --git a/qcsrc/common/animdecide.qh b/qcsrc/common/animdecide.qh index 39ca54ff2f..ebdba4e5d4 100644 --- a/qcsrc/common/animdecide.qh +++ b/qcsrc/common/animdecide.qh @@ -1,5 +1,4 @@ -#ifndef ANIMDECIDE_H -#define ANIMDECIDE_H +#pragma once // must be called at least once to initialize, or when modelindex is changed void animdecide_load_if_needed(entity e); @@ -145,4 +144,3 @@ const int ANIMACTION_PAIN2 = 3; // pain const int ANIMACTION_SHOOT = 4; // shoot const int ANIMACTION_TAUNT = 5; // taunt const int ANIMACTION_MELEE = 6; // melee -#endif diff --git a/qcsrc/common/campaign_common.qh b/qcsrc/common/campaign_common.qh index 3f494a4639..3bdc8725c2 100644 --- a/qcsrc/common/campaign_common.qh +++ b/qcsrc/common/campaign_common.qh @@ -1,5 +1,4 @@ -#ifndef CAMPAIGN_COMMON_H -#define CAMPAIGN_COMMON_H +#pragma once #ifndef CAMPAIGN_MAX_ENTRIES #define CAMPAIGN_MAX_ENTRIES 64 @@ -31,4 +30,3 @@ void CampaignFile_Unload(); // Sets up the campaign for the n-th array item (meaning: campaign_offset+nth // level) using localcmd() void CampaignSetup(float n); -#endif diff --git a/qcsrc/common/command/all.qh b/qcsrc/common/command/all.qh index 129090d3ab..15285b92ec 100644 --- a/qcsrc/common/command/all.qh +++ b/qcsrc/common/command/all.qh @@ -1,5 +1,4 @@ -#ifndef COMMON_COMMANDS_ALL_H -#define COMMON_COMMANDS_ALL_H +#pragma once #include "command.qh" REGISTRY(GENERIC_COMMANDS, BITS(7)) @@ -22,5 +21,3 @@ STATIC_INIT(GENERIC_COMMANDS_aliases) { #include "generic.qh" #include "markup.qh" #include "rpn.qh" - -#endif diff --git a/qcsrc/common/command/command.qh b/qcsrc/common/command/command.qh index 72eaa18dab..0b3741a06c 100644 --- a/qcsrc/common/command/command.qh +++ b/qcsrc/common/command/command.qh @@ -1,5 +1,4 @@ -#ifndef COMMAND_H -#define COMMAND_H +#pragma once const int CMD_REQUEST_COMMAND = 1; const int CMD_REQUEST_USAGE = 2; @@ -12,5 +11,3 @@ CLASS(Command, Object) TC(Command, this); } ENDCLASS(Command) - -#endif diff --git a/qcsrc/common/command/generic.qh b/qcsrc/common/command/generic.qh index f8139aaf47..b39c799014 100644 --- a/qcsrc/common/command/generic.qh +++ b/qcsrc/common/command/generic.qh @@ -1,5 +1,4 @@ -#ifndef COMMAND_GENERIC_H -#define COMMAND_GENERIC_H +#pragma once #include @@ -39,4 +38,3 @@ void Curl_URI_Get_Callback(int id, float status, string data); int curl_uri_get_pos; float curl_uri_get_exec[URI_GET_CURL_END - URI_GET_CURL + 1]; string curl_uri_get_cvar[URI_GET_CURL_END - URI_GET_CURL + 1]; -#endif diff --git a/qcsrc/common/command/markup.qh b/qcsrc/common/command/markup.qh index bccc78d0bc..7a1b3876af 100644 --- a/qcsrc/common/command/markup.qh +++ b/qcsrc/common/command/markup.qh @@ -1,5 +1,4 @@ -#ifndef COMMAND_MARKUP_H -#define COMMAND_MARKUP_H +#pragma once // ========================================================== // Declarations for markup command code, reworked by Samual @@ -12,4 +11,3 @@ string markup_from[NUM_MARKUPS]; string markup_to[NUM_MARKUPS]; string GenericCommand_markup(string s2); -#endif diff --git a/qcsrc/common/command/rpn.qh b/qcsrc/common/command/rpn.qh index 3c5a8019b2..ba028e2484 100644 --- a/qcsrc/common/command/rpn.qh +++ b/qcsrc/common/command/rpn.qh @@ -1,5 +1,4 @@ -#ifndef COMMAND_RPN_H -#define COMMAND_RPN_H +#pragma once // ========================================================= // Declarations for RPN command code, written by divVerent @@ -13,5 +12,3 @@ int rpn_sp; string rpn_stack[MAX_RPN_STACK]; void GenericCommand_rpn(float request, float argc, string command); - -#endif diff --git a/qcsrc/common/constants.qh b/qcsrc/common/constants.qh index e6e5596939..6c77556039 100644 --- a/qcsrc/common/constants.qh +++ b/qcsrc/common/constants.qh @@ -1,5 +1,4 @@ -#ifndef CONSTANTS_H -#define CONSTANTS_H +#pragma once REGISTER_NET_TEMP(TE_CSQC_PICTURE) REGISTER_NET_TEMP(TE_CSQC_RACE) @@ -326,4 +325,3 @@ const int SPAWN_PRIO_GOOD_DISTANCE = 10; const int GTV_FORBIDDEN = 0; // Cannot be voted const int GTV_AVAILABLE = 1; // Can be voted const int GTV_CUSTOM = 2; // Custom entry -#endif diff --git a/qcsrc/common/csqcmodel_settings.qh b/qcsrc/common/csqcmodel_settings.qh index 39cec43225..9c8dd42917 100644 --- a/qcsrc/common/csqcmodel_settings.qh +++ b/qcsrc/common/csqcmodel_settings.qh @@ -1,5 +1,4 @@ -#ifndef CSQCMODEL_SETTINGS_H -#define CSQCMODEL_SETTINGS_H +#pragma once // define this if svqc code wants to use .frame2 and .lerpfrac //#define CSQCMODEL_HAVE_TWO_FRAMES @@ -94,4 +93,3 @@ #endif #define CSQCMODEL_EF_RESPAWNGHOST EF_SELECTABLE -#endif diff --git a/qcsrc/common/deathtypes/all.qh b/qcsrc/common/deathtypes/all.qh index 9030879474..0466c230ab 100644 --- a/qcsrc/common/deathtypes/all.qh +++ b/qcsrc/common/deathtypes/all.qh @@ -1,5 +1,4 @@ -#ifndef DEATHTYPES_ALL_H -#define DEATHTYPES_ALL_H +#pragma once #include @@ -47,5 +46,3 @@ const int DT_FIRST = BIT(13); string Deathtype_Name(int deathtype); #include "all.inc" - -#endif diff --git a/qcsrc/common/effects/all.qh b/qcsrc/common/effects/all.qh index e0e9a3ca86..7581618375 100644 --- a/qcsrc/common/effects/all.qh +++ b/qcsrc/common/effects/all.qh @@ -1,5 +1,4 @@ -#ifndef EFFECTS_ALL_H -#define EFFECTS_ALL_H +#pragma once #include "effect.qh" @@ -17,5 +16,3 @@ REGISTRY_CHECK(Effects) EFFECT(0, Null, string_null) #include "all.inc" - -#endif diff --git a/qcsrc/common/effects/effect.qh b/qcsrc/common/effects/effect.qh index e58d42ca7b..7802f0a91b 100644 --- a/qcsrc/common/effects/effect.qh +++ b/qcsrc/common/effects/effect.qh @@ -1,5 +1,4 @@ -#ifndef EFFECT_H -#define EFFECT_H +#pragma once #define particleeffectnum(e) \ _particleeffectnum(e.eent_eff_name) @@ -32,5 +31,3 @@ entity Create_Effect_Entity(string eff_name, bool eff_trail) this.eent_eff_trail = eff_trail; return this; } - -#endif diff --git a/qcsrc/common/effects/qc/all.qh b/qcsrc/common/effects/qc/all.qh index 5b9b364313..54cf6b6ff0 100644 --- a/qcsrc/common/effects/qc/all.qh +++ b/qcsrc/common/effects/qc/all.qh @@ -1,4 +1,3 @@ -#ifndef EFFECTS_QC -#define EFFECTS_QC +#pragma once + #include "all.inc" -#endif diff --git a/qcsrc/common/effects/qc/globalsound.qh b/qcsrc/common/effects/qc/globalsound.qh index 640d330f1c..1df0b1a42b 100644 --- a/qcsrc/common/effects/qc/globalsound.qh +++ b/qcsrc/common/effects/qc/globalsound.qh @@ -1,5 +1,4 @@ -#ifndef GLOBALSOUND_H -#define GLOBALSOUND_H +#pragma once #ifdef SVQC /** Use new sound handling. TODO: use when sounds play correctly on clients */ @@ -148,5 +147,3 @@ STATIC_INIT(allvoicesamples) FOREACH(PlayerSounds, it.instanceOfVoiceMessage, allvoicesamples = strcat(allvoicesamples, " ", it.m_playersoundstr)); allvoicesamples = strzone(substring(allvoicesamples, 1, -1)); } - -#endif diff --git a/qcsrc/common/effects/qc/rubble.qh b/qcsrc/common/effects/qc/rubble.qh index 1665e4ccef..83a6941213 100644 --- a/qcsrc/common/effects/qc/rubble.qh +++ b/qcsrc/common/effects/qc/rubble.qh @@ -1,5 +1,4 @@ -#ifndef RUBBLE_H -#define RUBBLE_H +#pragma once #ifdef CSQC @@ -46,5 +45,3 @@ entity RubbleNew(string cname) } #endif - -#endif diff --git a/qcsrc/common/ent_cs.qh b/qcsrc/common/ent_cs.qh index 1c72b351f7..fdaaab2d57 100644 --- a/qcsrc/common/ent_cs.qh +++ b/qcsrc/common/ent_cs.qh @@ -1,5 +1,4 @@ -#ifndef ENT_CS_H -#define ENT_CS_H +#pragma once REGISTER_NET_LINKED(ENT_CLIENT_ENTCS) REGISTER_NET_TEMP(CLIENT_ENTCS) @@ -141,5 +140,3 @@ REGISTER_NET_TEMP(CLIENT_ENTCS) } #endif - -#endif diff --git a/qcsrc/common/impulses/all.qh b/qcsrc/common/impulses/all.qh index 6780ac16d0..45a8f1323b 100644 --- a/qcsrc/common/impulses/all.qh +++ b/qcsrc/common/impulses/all.qh @@ -1,5 +1,4 @@ -#ifndef IMPULSES_ALL_H -#define IMPULSES_ALL_H +#pragma once REGISTRY(IMPULSES, 255) REGISTER_REGISTRY(IMPULSES) @@ -216,5 +215,3 @@ CHIMPULSE(SPEEDRUN, 141) CHIMPULSE(CLONE_STANDING, 142) CHIMPULSE(TELEPORT, 143) CHIMPULSE(R00T, 148) - -#endif diff --git a/qcsrc/common/items/all.qh b/qcsrc/common/items/all.qh index 18cc5ae4f3..ff54a3a299 100644 --- a/qcsrc/common/items/all.qh +++ b/qcsrc/common/items/all.qh @@ -1,5 +1,4 @@ -#ifndef ITEMS_ALL_H -#define ITEMS_ALL_H +#pragma once #include @@ -33,5 +32,3 @@ GENERIC_COMMAND(dumpitems, "Dump all items to the console") { #ifndef MENUQC string Item_Model(string item_mdl); #endif - -#endif diff --git a/qcsrc/common/items/inventory.qh b/qcsrc/common/items/inventory.qh index c7f602e653..4ca11c2686 100644 --- a/qcsrc/common/items/inventory.qh +++ b/qcsrc/common/items/inventory.qh @@ -1,5 +1,4 @@ -#ifndef INVENTORY_H -#define INVENTORY_H +#pragma once #include "all.qh" #include "item/pickup.qh" @@ -74,5 +73,3 @@ void Inventory_new(entity e) void Inventory_delete(entity e) { delete(e.inventory.inventory); delete(e.inventory); } void Inventory_update(entity e) { e.inventory.SendFlags = 0xFFFFFF; } #endif - -#endif diff --git a/qcsrc/common/items/item.qh b/qcsrc/common/items/item.qh index 4ab7af4f23..ed33169fcd 100644 --- a/qcsrc/common/items/item.qh +++ b/qcsrc/common/items/item.qh @@ -1,5 +1,4 @@ -#ifndef GAMEITEM_H -#define GAMEITEM_H +#pragma once const int IT_UNLIMITED_WEAPON_AMMO = BIT(0); // when this bit is set, using a weapon does not reduce ammo. Checkpoints can give this powerup. const int IT_UNLIMITED_SUPERWEAPONS = BIT(1); // when this bit is set, superweapons don't expire. Checkpoints can give this powerup. @@ -58,5 +57,3 @@ CLASS(GameItem, Object) } void ITEM_HANDLE(Show, GameItem this) { this.show(this); } ENDCLASS(GameItem) - -#endif diff --git a/qcsrc/common/items/item/ammo.qh b/qcsrc/common/items/item/ammo.qh index 84f20483e4..ed2ada7cf4 100644 --- a/qcsrc/common/items/item/ammo.qh +++ b/qcsrc/common/items/item/ammo.qh @@ -1,5 +1,5 @@ -#ifndef AMMO_H -#define AMMO_H +#pragma once + #include "pickup.qh" CLASS(Ammo, Pickup) #ifdef SVQC @@ -8,4 +8,3 @@ CLASS(Ammo, Pickup) ATTRIB(Ammo, m_respawntimejitter, float(), GET(g_pickup_respawntimejitter_ammo)) #endif ENDCLASS(Ammo) -#endif diff --git a/qcsrc/common/items/item/armor.qh b/qcsrc/common/items/item/armor.qh index adb93e7c94..6e79a2200a 100644 --- a/qcsrc/common/items/item/armor.qh +++ b/qcsrc/common/items/item/armor.qh @@ -1,5 +1,5 @@ -#ifndef ARMOR_H -#define ARMOR_H +#pragma once + #include "pickup.qh" CLASS(Armor, Pickup) #ifdef SVQC @@ -8,4 +8,3 @@ CLASS(Armor, Pickup) ATTRIB(Armor, m_pickupevalfunc, float(entity player, entity item), commodity_pickupevalfunc) #endif ENDCLASS(Armor) -#endif diff --git a/qcsrc/common/items/item/health.qh b/qcsrc/common/items/item/health.qh index f7bfb5c938..3a0249d513 100644 --- a/qcsrc/common/items/item/health.qh +++ b/qcsrc/common/items/item/health.qh @@ -1,5 +1,5 @@ -#ifndef HEALTH_H -#define HEALTH_H +#pragma once + #include "pickup.qh" CLASS(Health, Pickup) #ifdef SVQC @@ -8,4 +8,3 @@ CLASS(Health, Pickup) ATTRIB(Health, m_pickupevalfunc, float(entity player, entity item), commodity_pickupevalfunc) #endif ENDCLASS(Health) -#endif diff --git a/qcsrc/common/items/item/pickup.qh b/qcsrc/common/items/item/pickup.qh index 6d91494818..5949a71eda 100644 --- a/qcsrc/common/items/item/pickup.qh +++ b/qcsrc/common/items/item/pickup.qh @@ -1,5 +1,5 @@ -#ifndef PICKUP_H -#define PICKUP_H +#pragma once + #include #include CLASS(Pickup, GameItem) @@ -38,5 +38,3 @@ CLASS(Pickup, GameItem) bool ITEM_HANDLE(Pickup, Pickup this, entity item, entity player); #endif ENDCLASS(Pickup) - -#endif diff --git a/qcsrc/common/mapinfo.qh b/qcsrc/common/mapinfo.qh index 5ab36f3ae2..52ee1bd9c0 100644 --- a/qcsrc/common/mapinfo.qh +++ b/qcsrc/common/mapinfo.qh @@ -1,5 +1,4 @@ -#ifndef MAPINFO_H -#define MAPINFO_H +#pragma once bool autocvar_developer_mapper; @@ -270,4 +269,3 @@ void MapInfo_Shutdown(); // call this in the shutdown handler #define MAPINFO_SETTEMP_ACL_USER cvar_string("g_mapinfo_settemp_acl") #define MAPINFO_SETTEMP_ACL_SYSTEM "-g_mapinfo_* -rcon_* -_* -g_ban* +*" -#endif diff --git a/qcsrc/common/minigames/cl_minigames.qh b/qcsrc/common/minigames/cl_minigames.qh index cc24d4bf0c..602c797358 100644 --- a/qcsrc/common/minigames/cl_minigames.qh +++ b/qcsrc/common/minigames/cl_minigames.qh @@ -1,5 +1,4 @@ -#ifndef CL_MINIGAMES_H -#define CL_MINIGAMES_H +#pragma once // Get a square in the center of the avaliable area // \note macro to pass by reference pos and mySize @@ -128,5 +127,3 @@ REGISTRY_CHECK(Minigames) this.minigame_event = name##_client_event; \ } \ REGISTER_INIT(MINIGAME_##name) - -#endif diff --git a/qcsrc/common/minigames/cl_minigames_hud.qh b/qcsrc/common/minigames/cl_minigames_hud.qh index f170c590de..ef44ea025f 100644 --- a/qcsrc/common/minigames/cl_minigames_hud.qh +++ b/qcsrc/common/minigames/cl_minigames_hud.qh @@ -1,7 +1,4 @@ -#ifndef CL_MINIGAMES_HUD_H -#define CL_MINIGAMES_HUD_H +#pragma once float HUD_Minigame_InputEvent(float bInputType, float nPrimary, float nSecondary); void HUD_Minigame_Mouse(); - -#endif diff --git a/qcsrc/common/minigames/minigames.qh b/qcsrc/common/minigames/minigames.qh index 7425149f38..284001a0a2 100644 --- a/qcsrc/common/minigames/minigames.qh +++ b/qcsrc/common/minigames/minigames.qh @@ -1,5 +1,4 @@ -#ifndef MINIGAMES_H -#define MINIGAMES_H +#pragma once // previous node in a doubly linked list .entity list_prev; @@ -121,5 +120,3 @@ entity msle_spawn(entity minigame_session, string class_name); int msle_id(string class_name); string msle_classname(int id); - -#endif diff --git a/qcsrc/common/minigames/sv_minigames.qh b/qcsrc/common/minigames/sv_minigames.qh index de9e3f6961..b5015a1f40 100644 --- a/qcsrc/common/minigames/sv_minigames.qh +++ b/qcsrc/common/minigames/sv_minigames.qh @@ -1,5 +1,4 @@ -#ifndef SV_MINIGAMES_H -#define SV_MINIGAMES_H +#pragma once /// Create a new minigame session /// \return minigame session entity @@ -59,5 +58,3 @@ REGISTRY_CHECK(Minigames) this.minigame_event = name##_server_event; \ } \ REGISTER_INIT(MINIGAME_##name) - -#endif diff --git a/qcsrc/common/models/all.qh b/qcsrc/common/models/all.qh index f3bfd64c75..ce98629411 100644 --- a/qcsrc/common/models/all.qh +++ b/qcsrc/common/models/all.qh @@ -1,5 +1,4 @@ -#ifndef MODELS_ALL_H -#define MODELS_ALL_H +#pragma once #include "model.qh" @@ -22,5 +21,3 @@ PRECACHE(Models) { MODEL(Null, "null"); #include "all.inc" - -#endif diff --git a/qcsrc/common/models/model.qh b/qcsrc/common/models/model.qh index 91fb278ae0..f651b709e4 100644 --- a/qcsrc/common/models/model.qh +++ b/qcsrc/common/models/model.qh @@ -1,5 +1,4 @@ -#ifndef MODEL_H -#define MODEL_H +#pragma once #define setmodel(e, m) _setmodel((e), (m).model_str()) @@ -23,5 +22,3 @@ CLASS(Model, Object) precache_model(s); } ENDCLASS(Model) - -#endif diff --git a/qcsrc/common/monsters/all.qh b/qcsrc/common/monsters/all.qh index 1e23f32879..84f7a0d78f 100644 --- a/qcsrc/common/monsters/all.qh +++ b/qcsrc/common/monsters/all.qh @@ -1,5 +1,4 @@ -#ifndef MONSTERS_ALL_H -#define MONSTERS_ALL_H +#pragma once #include "monster.qh" @@ -18,5 +17,3 @@ REGISTER_MONSTER(Null, NEW(Monster)); #include "monster/_mod.inc" - -#endif diff --git a/qcsrc/common/monsters/monster.qh b/qcsrc/common/monsters/monster.qh index 7b96380708..b345fa6fc1 100644 --- a/qcsrc/common/monsters/monster.qh +++ b/qcsrc/common/monsters/monster.qh @@ -1,5 +1,4 @@ -#ifndef MONSTER_H -#define MONSTER_H +#pragma once #ifdef SVQC #include "sv_monsters.qh" @@ -74,5 +73,3 @@ CLASS(Monster, Object) METHOD(Monster, mr_anim, bool(Monster this, entity actor)) { TC(Monster, this); return false; } ENDCLASS(Monster) - -#endif diff --git a/qcsrc/common/monsters/spawn.qh b/qcsrc/common/monsters/spawn.qh index 2ebdcc54e8..0aba5c19d4 100644 --- a/qcsrc/common/monsters/spawn.qh +++ b/qcsrc/common/monsters/spawn.qh @@ -1,5 +1,3 @@ -#ifndef SPAWN_H -#define SPAWN_H +#pragma once entity spawnmonster (string monster, float monster_id, entity spawnedby, entity own, vector orig, float respwn, float invincible, float moveflag); -#endif diff --git a/qcsrc/common/monsters/sv_monsters.qh b/qcsrc/common/monsters/sv_monsters.qh index ffade7b6a2..56509cf661 100644 --- a/qcsrc/common/monsters/sv_monsters.qh +++ b/qcsrc/common/monsters/sv_monsters.qh @@ -1,5 +1,4 @@ -#ifndef SV_MONSTERS_H -#define SV_MONSTERS_H +#pragma once // stats networking .int stat_monsters_killed; @@ -113,5 +112,3 @@ ALLMONSTERSOUNDS #undef _MSOUND float GetMonsterSoundSampleField_notFound; - -#endif diff --git a/qcsrc/common/net_notice.qh b/qcsrc/common/net_notice.qh index b36f631fe2..1134205185 100644 --- a/qcsrc/common/net_notice.qh +++ b/qcsrc/common/net_notice.qh @@ -1,5 +1,4 @@ -#ifndef NET_NOTICE_H -#define NET_NOTICE_H +#pragma once #ifdef SVQC string autocvar_sv_join_notices; @@ -13,5 +12,3 @@ void sv_notice_join(entity _to); #ifdef CSQC void cl_notice_read(); #endif - -#endif diff --git a/qcsrc/common/notifications/all.qh b/qcsrc/common/notifications/all.qh index 4ff276c78b..f364225b31 100644 --- a/qcsrc/common/notifications/all.qh +++ b/qcsrc/common/notifications/all.qh @@ -1,5 +1,4 @@ -#ifndef NOTIFICATIONS_H -#define NOTIFICATIONS_H +#pragma once #include @@ -800,5 +799,3 @@ REGISTRY_END(Notifications) } #include "all.inc" - -#endif diff --git a/qcsrc/common/physics/movelib.qh b/qcsrc/common/physics/movelib.qh index 250c3ba2b2..e0659a40c1 100644 --- a/qcsrc/common/physics/movelib.qh +++ b/qcsrc/common/physics/movelib.qh @@ -1,5 +1,4 @@ -#ifndef MOVELIB_H -#define MOVELIB_H +#pragma once #ifdef SVQC .vector moveto; @@ -49,5 +48,3 @@ Yed need to set v_up and v_forward (generally by calling makevectors) before cal #endif void movelib_groundalign4point(entity this, float spring_length, float spring_up, float blendrate, float _max); - -#endif diff --git a/qcsrc/common/physics/movetypes/movetypes.qh b/qcsrc/common/physics/movetypes/movetypes.qh index 35a73d3331..db5d29cefd 100644 --- a/qcsrc/common/physics/movetypes/movetypes.qh +++ b/qcsrc/common/physics/movetypes/movetypes.qh @@ -1,5 +1,4 @@ -#ifndef MOVETYPES_H -#define MOVETYPES_H +#pragma once #define IS_ONGROUND(s) boolean((s).flags & FL_ONGROUND) #define SET_ONGROUND(s) ((s).flags |= FL_ONGROUND) @@ -90,5 +89,3 @@ const int MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE = BIT(2); #ifdef CSQC #define moveflags STAT(MOVEFLAGS) #endif - -#endif diff --git a/qcsrc/common/physics/player.qh b/qcsrc/common/physics/player.qh index ae1bd87855..9e7b799d02 100644 --- a/qcsrc/common/physics/player.qh +++ b/qcsrc/common/physics/player.qh @@ -1,5 +1,4 @@ -#ifndef COMMON_PHYSICS_H -#define COMMON_PHYSICS_H +#pragma once // Client/server mappings @@ -325,5 +324,3 @@ NET_HANDLE(setpause, bool) return true; } #endif - -#endif diff --git a/qcsrc/common/playerstats.qh b/qcsrc/common/playerstats.qh index ec309c4f4c..73496ba763 100644 --- a/qcsrc/common/playerstats.qh +++ b/qcsrc/common/playerstats.qh @@ -1,5 +1,4 @@ -#ifndef PLAYERSTATS_H -#define PLAYERSTATS_H +#pragma once #ifdef SVQC //float PS_PM_IN_DB = -1; // playerstats_prematch_in_db // db for info COLLECTED at the beginning of a match @@ -116,4 +115,3 @@ void PlayerStats_PlayerDetail(); void PlayerStats_PlayerDetail_CheckUpdate(); void PlayerStats_PlayerDetail_Handler(entity fh, entity p, float status); #endif -#endif diff --git a/qcsrc/common/sounds/all.qh b/qcsrc/common/sounds/all.qh index a7fe25f17d..763aae67cf 100644 --- a/qcsrc/common/sounds/all.qh +++ b/qcsrc/common/sounds/all.qh @@ -1,5 +1,4 @@ -#ifndef SOUNDS_ALL_H -#define SOUNDS_ALL_H +#pragma once #include "sound.qh" @@ -21,4 +20,3 @@ PRECACHE(Sounds) { SOUND(Null, "misc/null"); #include "all.inc" #include "all.qc" -#endif diff --git a/qcsrc/common/sounds/sound.qh b/qcsrc/common/sounds/sound.qh index 519f910b0d..b2cca4fee1 100644 --- a/qcsrc/common/sounds/sound.qh +++ b/qcsrc/common/sounds/sound.qh @@ -1,5 +1,4 @@ -#ifndef SOUND_H -#define SOUND_H +#pragma once // negative = SVQC autochannels // positive = one per entity @@ -130,5 +129,3 @@ CLASS(Sound, Object) precache_sound(s); } ENDCLASS(Sound) - -#endif diff --git a/qcsrc/common/stats.qh b/qcsrc/common/stats.qh index c7fc313a88..a24243bb6d 100644 --- a/qcsrc/common/stats.qh +++ b/qcsrc/common/stats.qh @@ -1,5 +1,4 @@ -#ifndef STATS_H -#define STATS_H +#pragma once #ifdef SVQC #include @@ -323,6 +322,3 @@ REGISTER_STAT(GUNALIGN, int, this.cvar_cl_gunalign) #ifdef SVQC SPECTATE_COPYFIELD(_STAT(GUNALIGN)) #endif - - -#endif diff --git a/qcsrc/common/t_items.qh b/qcsrc/common/t_items.qh index 1ed807c7c1..1c65e806af 100644 --- a/qcsrc/common/t_items.qh +++ b/qcsrc/common/t_items.qh @@ -1,5 +1,4 @@ -#ifndef T_ITEMS_H -#define T_ITEMS_H +#pragma once const int AMMO_COUNT = 4; // amount of ammo types to show in the inventory panel @@ -133,4 +132,3 @@ void GiveRot(entity e, float v0, float v1, .float rotfield, float rottime, .floa float GiveItems(entity e, float beginarg, float endarg); #endif -#endif diff --git a/qcsrc/common/teams.qh b/qcsrc/common/teams.qh index aeaf078dce..1f8a603dd0 100644 --- a/qcsrc/common/teams.qh +++ b/qcsrc/common/teams.qh @@ -1,5 +1,4 @@ -#ifndef TEAMS_H -#define TEAMS_H +#pragma once #ifdef TEAMNUMBERS_THAT_ARENT_STUPID const int NUM_TEAM_1 = 1; // red @@ -177,5 +176,3 @@ float Team_TeamToNumber(float teamid) // safe team comparisons #define SAME_TEAM(a,b) (teamplay ? (a.team == b.team) : (a == b)) #define DIFF_TEAM(a,b) (teamplay ? (a.team != b.team) : (a != b)) - -#endif diff --git a/qcsrc/common/triggers/func/breakable.qh b/qcsrc/common/triggers/func/breakable.qh index 75cfb94c69..761a2c7a98 100644 --- a/qcsrc/common/triggers/func/breakable.qh +++ b/qcsrc/common/triggers/func/breakable.qh @@ -1,8 +1,5 @@ -#ifndef TRIGGERS_FUNC_BREAKABLE_H -#define TRIGGERS_FUNC_BREAKABLE_H +#pragma once #ifdef SVQC spawnfunc(func_breakable); #endif - -#endif diff --git a/qcsrc/common/triggers/func/include.qh b/qcsrc/common/triggers/func/include.qh index 628355cb79..4e8b94cd1c 100644 --- a/qcsrc/common/triggers/func/include.qh +++ b/qcsrc/common/triggers/func/include.qh @@ -1,8 +1,5 @@ -#ifndef TRIGGERS_FUNC_INCLUDE_H -#define TRIGGERS_FUNC_INCLUDE_H +#pragma once #include "door.qh" #include "ladder.qh" #include "train.qh" - -#endif diff --git a/qcsrc/common/triggers/include.qh b/qcsrc/common/triggers/include.qh index 25688e3ecb..f3f81738a1 100644 --- a/qcsrc/common/triggers/include.qh +++ b/qcsrc/common/triggers/include.qh @@ -1,5 +1,4 @@ -#ifndef TRIGGERS_INCLUDE_H -#define TRIGGERS_INCLUDE_H +#pragma once // some required common stuff #ifdef CSQC @@ -18,5 +17,3 @@ // trigger #include "trigger/include.qh" - -#endif diff --git a/qcsrc/common/triggers/platforms.qh b/qcsrc/common/triggers/platforms.qh index f0727be3ca..c40467494f 100644 --- a/qcsrc/common/triggers/platforms.qh +++ b/qcsrc/common/triggers/platforms.qh @@ -1,5 +1,4 @@ -#ifndef PLATFORMS_H -#define PLATFORMS_H +#pragma once .float dmgtime2; @@ -12,5 +11,3 @@ void plat_crush(entity this, entity blocker); const float PLAT_LOW_TRIGGER = 1; .float dmg; - -#endif diff --git a/qcsrc/common/triggers/subs.qh b/qcsrc/common/triggers/subs.qh index 096022c848..4f98d5ae15 100644 --- a/qcsrc/common/triggers/subs.qh +++ b/qcsrc/common/triggers/subs.qh @@ -1,5 +1,4 @@ -#ifndef SUBS_H -#define SUBS_H +#pragma once #define SUB_ANGLES(s) (s).angles #define SUB_VELOCITY velocity @@ -69,5 +68,3 @@ float STATE_DOWN = 3; .float max_health; // players maximum health is stored here #endif - -#endif diff --git a/qcsrc/common/triggers/target/include.qh b/qcsrc/common/triggers/target/include.qh index 4e44b9762b..c0f7cad443 100644 --- a/qcsrc/common/triggers/target/include.qh +++ b/qcsrc/common/triggers/target/include.qh @@ -1,6 +1,3 @@ -#ifndef TRIGGERS_TARGET_INCLUDE_H -#define TRIGGERS_TARGET_INCLUDE_H +#pragma once #include "music.qh" - -#endif diff --git a/qcsrc/common/triggers/target/music.qh b/qcsrc/common/triggers/target/music.qh index a9232107eb..80b3684a4e 100644 --- a/qcsrc/common/triggers/target/music.qh +++ b/qcsrc/common/triggers/target/music.qh @@ -1,5 +1,4 @@ -#ifndef TARGET_MUSIC_H -#define TARGET_MUSIC_H +#pragma once .float lifetime; @@ -25,5 +24,3 @@ void Ent_TriggerMusic_Remove(entity this); #elif defined(SVQC) void target_music_kill(); #endif - -#endif diff --git a/qcsrc/common/triggers/teleporters.qh b/qcsrc/common/triggers/teleporters.qh index c0f45f263d..513ed3e269 100644 --- a/qcsrc/common/triggers/teleporters.qh +++ b/qcsrc/common/triggers/teleporters.qh @@ -1,5 +1,4 @@ -#ifndef T_TELEPORTERS_H -#define T_TELEPORTERS_H +#pragma once .entity pusher; const float TELEPORT_FLAG_SOUND = 1; @@ -92,5 +91,3 @@ void WarpZone_PostTeleportPlayer_Callback(entity pl); if(head.isplayermodel) \ if(boxesoverlap(deathmin, deathmax, head.absmin, head.absmax)) #endif - -#endif diff --git a/qcsrc/common/triggers/trigger/impulse.qh b/qcsrc/common/triggers/trigger/impulse.qh index 67d6361fbe..a6961f5d2e 100644 --- a/qcsrc/common/triggers/trigger/impulse.qh +++ b/qcsrc/common/triggers/trigger/impulse.qh @@ -1,10 +1,7 @@ -#ifndef TRIGGER_IMPULSE_H -#define TRIGGER_IMPULSE_H +#pragma once // tZorks trigger impulse / gravity .float radius; .float falloff; .float strength; .float lastpushtime; - -#endif diff --git a/qcsrc/common/triggers/trigger/include.qh b/qcsrc/common/triggers/trigger/include.qh index 63cdb01901..8aa6b2b172 100644 --- a/qcsrc/common/triggers/trigger/include.qh +++ b/qcsrc/common/triggers/trigger/include.qh @@ -1,5 +1,4 @@ -#ifndef TRIGGERS_TRIGGER_INCLUDE_H -#define TRIGGERS_TRIGGER_INCLUDE_H +#pragma once #include "multi.qh" #include "jumppads.qh" @@ -8,5 +7,3 @@ #include "keylock.qh" #include "impulse.qh" #include "viewloc.qh" - -#endif diff --git a/qcsrc/common/triggers/trigger/jumppads.qh b/qcsrc/common/triggers/trigger/jumppads.qh index e03f14d335..76d244da55 100644 --- a/qcsrc/common/triggers/trigger/jumppads.qh +++ b/qcsrc/common/triggers/trigger/jumppads.qh @@ -1,5 +1,4 @@ -#ifndef T_JUMPPADS_H -#define T_JUMPPADS_H +#pragma once const float PUSH_ONCE = 1; const float PUSH_SILENT = 2; @@ -59,4 +58,3 @@ spawnfunc(target_push); spawnfunc(info_notnull); spawnfunc(target_position); #endif -#endif diff --git a/qcsrc/common/triggers/trigger/secret.qh b/qcsrc/common/triggers/trigger/secret.qh index c2a155ce72..e483316a40 100644 --- a/qcsrc/common/triggers/trigger/secret.qh +++ b/qcsrc/common/triggers/trigger/secret.qh @@ -1,5 +1,4 @@ -#ifndef SECRET_H -#define SECRET_H +#pragma once #ifdef SVQC /** @@ -21,4 +20,3 @@ float secrets_found; */ void secrets_setstatus(entity this); #endif -#endif diff --git a/qcsrc/common/triggers/trigger/swamp.qh b/qcsrc/common/triggers/trigger/swamp.qh index 7ae50bac42..f4df98378d 100644 --- a/qcsrc/common/triggers/trigger/swamp.qh +++ b/qcsrc/common/triggers/trigger/swamp.qh @@ -1,5 +1,4 @@ -#ifndef TRIGGER_SWAMP_H -#define TRIGGER_SWAMP_H +#pragma once .float swamp_interval; //Hurt players in swamp with this interval .float swamp_slowdown; //Players in swamp get slowd down by this mutch 0-1 is slowdown 1-~ is speedup (!?) @@ -7,5 +6,3 @@ .float in_swamp; // bool .entity swampslug; // Uses this to release from swamp ("untouch" fix) - -#endif diff --git a/qcsrc/common/triggers/trigger/viewloc.qh b/qcsrc/common/triggers/trigger/viewloc.qh index 881197a3b8..167fc218f7 100644 --- a/qcsrc/common/triggers/trigger/viewloc.qh +++ b/qcsrc/common/triggers/trigger/viewloc.qh @@ -1,5 +1,4 @@ -#ifndef T_VIEWLOC_H -#define T_VIEWLOC_H +#pragma once .entity viewloc; @@ -8,5 +7,3 @@ .entity enemy; .vector movedir; #endif - -#endif diff --git a/qcsrc/common/triggers/triggers.qh b/qcsrc/common/triggers/triggers.qh index 82c0916c19..8a8eb566c1 100644 --- a/qcsrc/common/triggers/triggers.qh +++ b/qcsrc/common/triggers/triggers.qh @@ -1,5 +1,4 @@ -#ifndef TRIGGERS_H -#define TRIGGERS_H +#pragma once const float SF_TRIGGER_INIT = 1; const float SF_TRIGGER_UPDATE = 2; @@ -50,5 +49,3 @@ const int ACTIVE_IDLE = 2; const int ACTIVE_BUSY = 2; const int ACTIVE_TOGGLE = 3; #endif - -#endif diff --git a/qcsrc/common/turrets/all.qh b/qcsrc/common/turrets/all.qh index a993b9218a..476da2d18e 100644 --- a/qcsrc/common/turrets/all.qh +++ b/qcsrc/common/turrets/all.qh @@ -1,5 +1,4 @@ -#ifndef TURRETS_ALL_H -#define TURRETS_ALL_H +#pragma once #include #include "config.qh" @@ -75,5 +74,3 @@ const int TUR_FIRST = 1; REGISTER_TURRET(Null, NEW(Turret)); #include "turret/_mod.inc" - -#endif diff --git a/qcsrc/common/turrets/config.qh b/qcsrc/common/turrets/config.qh index bb2a81b847..caa68a8648 100644 --- a/qcsrc/common/turrets/config.qh +++ b/qcsrc/common/turrets/config.qh @@ -1,5 +1,4 @@ -#ifndef TURRETS_CONFIG_H -#define TURRETS_CONFIG_H +#pragma once #ifdef SVQC @@ -17,5 +16,3 @@ string tur_config_queue[MAX_TUR_CONFIG]; #endif - -#endif diff --git a/qcsrc/common/turrets/sv_turrets.qh b/qcsrc/common/turrets/sv_turrets.qh index 29d08c6290..c5a3728d13 100644 --- a/qcsrc/common/turrets/sv_turrets.qh +++ b/qcsrc/common/turrets/sv_turrets.qh @@ -1,5 +1,4 @@ -#ifndef SV_TURRETS_H -#define SV_TURRETS_H +#pragma once entity turret_projectile(entity actor, Sound _snd, float _size, float _health, float _death, float _proj_type, float _cull, float _cli_anim); void turret_projectile_explode(entity this); @@ -119,5 +118,3 @@ vector tvt_tadv; // turret angle diff vector, updated by a successful call to tu float tvt_thadf; // turret head angle diff float, updated by a successful call to turret_validate_target float tvt_tadf; // turret angle diff float, updated by a successful call to turret_validate_target float tvt_dist; // turret distance, updated by a successful call to turret_validate_target - -#endif diff --git a/qcsrc/common/turrets/turret.qh b/qcsrc/common/turrets/turret.qh index a66952833a..dc84acc740 100644 --- a/qcsrc/common/turrets/turret.qh +++ b/qcsrc/common/turrets/turret.qh @@ -1,5 +1,4 @@ -#ifndef TURRET_H -#define TURRET_H +#pragma once #include @@ -176,5 +175,3 @@ const int TNSF_MOVE = 64; const int TNSF_ANIM = 128; const int TNSF_FULL_UPDATE = 16777215; - -#endif diff --git a/qcsrc/common/turrets/util.qh b/qcsrc/common/turrets/util.qh index d5c948d573..5f52695baf 100644 --- a/qcsrc/common/turrets/util.qh +++ b/qcsrc/common/turrets/util.qh @@ -1,5 +1,4 @@ -#ifndef TURRETS_UTIL_H -#define TURRETS_UTIL_H +#pragma once float shortangle_f(float ang1, float ang2); float anglemods(float v); @@ -8,5 +7,3 @@ vector shortangle_vxy(vector ang1, vector ang2); vector angleofs(entity from, entity to); vector angleofs3(vector from, vector from_a, entity to); void FireImoBeam(entity this, vector start, vector end, vector smin, vector smax, float bforce, float f_dmg, float f_velfactor, float deathtype); - -#endif diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index 6ec6036fdd..81acde950e 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -1,5 +1,4 @@ -#ifndef COMMON_UTIL_H -#define COMMON_UTIL_H +#pragma once #ifndef MENUQC @@ -296,4 +295,3 @@ vector bezier_quadratic_getderivative(vector a, vector p, vector b, float t); // Returns the correct difference between two always increasing numbers #define COMPARE_INCREASING(to,from) (to < from ? from + to + 2 : to - from) -#endif diff --git a/qcsrc/common/vehicles/all.qh b/qcsrc/common/vehicles/all.qh index b58389d4ab..158492f661 100644 --- a/qcsrc/common/vehicles/all.qh +++ b/qcsrc/common/vehicles/all.qh @@ -1,5 +1,4 @@ -#ifndef VEHICLES_ALL_H -#define VEHICLES_ALL_H +#pragma once #include "vehicle.qh" @@ -22,5 +21,3 @@ const int VEH_FIRST = 1; REGISTER_VEHICLE(Null, NEW(Vehicle)); #include "vehicle/_mod.inc" - -#endif diff --git a/qcsrc/common/vehicles/cl_vehicles.qh b/qcsrc/common/vehicles/cl_vehicles.qh index 5293030c19..327074b986 100644 --- a/qcsrc/common/vehicles/cl_vehicles.qh +++ b/qcsrc/common/vehicles/cl_vehicles.qh @@ -1,5 +1,4 @@ -#ifndef CL_VEHICLES_H -#define CL_VEHICLES_H +#pragma once vector vehicleHud_Size; vector vehicleHud_Pos; @@ -8,5 +7,3 @@ void RaptorCBShellfragDraw(entity this); void RaptorCBShellfragToss(vector _org, vector _vel, vector _ang); #define weapon2mode STAT(VEHICLESTAT_W2MODE) - -#endif diff --git a/qcsrc/common/vehicles/sv_vehicles.qh b/qcsrc/common/vehicles/sv_vehicles.qh index e593922fcb..158191f654 100644 --- a/qcsrc/common/vehicles/sv_vehicles.qh +++ b/qcsrc/common/vehicles/sv_vehicles.qh @@ -1,5 +1,4 @@ -#ifndef VEHICLES_DEF_H -#define VEHICLES_DEF_H +#pragma once #ifdef SVQC #include @@ -110,4 +109,3 @@ bool vehicles_crushable(entity e); float vehicle_altitude(entity this, float amax); #endif -#endif diff --git a/qcsrc/common/vehicles/vehicle.qh b/qcsrc/common/vehicles/vehicle.qh index 7b1194e8eb..1578e0a7d5 100644 --- a/qcsrc/common/vehicles/vehicle.qh +++ b/qcsrc/common/vehicles/vehicle.qh @@ -1,5 +1,4 @@ -#ifndef VEHICLE_H -#define VEHICLE_H +#pragma once CLASS(Vehicle, Object) ATTRIB(Vehicle, vehicleid, int, 0) @@ -76,5 +75,3 @@ const int VHF_PLAYERSLOT = BIT(14); /// This ent is a player slot on a multi-pe // fields: .entity tur_head; - -#endif diff --git a/qcsrc/common/vehicles/vehicle/bumblebee.qh b/qcsrc/common/vehicles/vehicle/bumblebee.qh index b043038921..b675185d49 100644 --- a/qcsrc/common/vehicles/vehicle/bumblebee.qh +++ b/qcsrc/common/vehicles/vehicle/bumblebee.qh @@ -1,9 +1,6 @@ -#ifndef BUMBLEBEE_H -#define BUMBLEBEE_H +#pragma once #ifdef CSQC void CSQC_BUMBLE_GUN_HUD(); #endif - -#endif diff --git a/qcsrc/common/vehicles/vehicle/raptor.qh b/qcsrc/common/vehicles/vehicle/raptor.qh index f24939ba9d..fd9a7de790 100644 --- a/qcsrc/common/vehicles/vehicle/raptor.qh +++ b/qcsrc/common/vehicles/vehicle/raptor.qh @@ -1,9 +1,6 @@ -#ifndef RAPTOR_H -#define RAPTOR_H +#pragma once const int RSM_FIRST = 1; const int RSM_BOMB = 1; const int RSM_FLARE = 2; const int RSM_LAST = 2; - -#endif diff --git a/qcsrc/common/viewloc.qh b/qcsrc/common/viewloc.qh index 4c4d05f926..7725d2d8fd 100644 --- a/qcsrc/common/viewloc.qh +++ b/qcsrc/common/viewloc.qh @@ -1,5 +1,4 @@ -#ifndef VIEWLOC_H -#define VIEWLOC_H +#pragma once .entity viewloc; @@ -11,5 +10,3 @@ void viewloc_SetViewLocation(); void viewloc_SetTags(entity this); #endif - -#endif diff --git a/qcsrc/common/weapons/all.qh b/qcsrc/common/weapons/all.qh index 24ea41c645..bff6e6db72 100644 --- a/qcsrc/common/weapons/all.qh +++ b/qcsrc/common/weapons/all.qh @@ -1,5 +1,4 @@ -#ifndef WEAPONS_ALL_H -#define WEAPONS_ALL_H +#pragma once #include #include @@ -360,5 +359,3 @@ ENUMCLASS_END(WFRAME) vector shotorg_adjust_values(vector vecs, bool y_is_right, bool visual, int algn); void CL_WeaponEntity_SetModel(entity this, string name, bool _anim); #endif - -#endif diff --git a/qcsrc/common/weapons/calculations.qh b/qcsrc/common/weapons/calculations.qh index 4feed9fc54..05eb9d9baf 100644 --- a/qcsrc/common/weapons/calculations.qh +++ b/qcsrc/common/weapons/calculations.qh @@ -1,6 +1,5 @@ -#ifndef CALCULATIONS_H -#define CALCULATIONS_H +#pragma once + vector damage_explosion_calcpush(vector explosion_f, vector target_v, float speedfactor); vector W_CalculateSpread(vector forward, float spread, float spreadfactor, float spreadstyle); int W_GetGunAlignment(entity player); -#endif diff --git a/qcsrc/common/weapons/config.qh b/qcsrc/common/weapons/config.qh index d88e18194b..753147307b 100644 --- a/qcsrc/common/weapons/config.qh +++ b/qcsrc/common/weapons/config.qh @@ -1,5 +1,4 @@ -#ifndef WEAPONS_CONFIG_H -#define WEAPONS_CONFIG_H +#pragma once #ifdef SVQC // ========================== @@ -37,4 +36,3 @@ string wep_config_queue[MAX_WEP_CONFIG]; cvar(sprintf("g_balance_%s_%s", #wepname, #name)))) } #endif -#endif diff --git a/qcsrc/common/weapons/weapon.qh b/qcsrc/common/weapons/weapon.qh index 8b844f13e0..b2ede3c503 100644 --- a/qcsrc/common/weapons/weapon.qh +++ b/qcsrc/common/weapons/weapon.qh @@ -1,5 +1,5 @@ -#ifndef WEAPON_H -#define WEAPON_H +#pragma once + #include #include @@ -216,5 +216,3 @@ int GetAmmoStat(.int ammotype); string W_Sound(string w_snd); string W_Model(string w_mdl); - -#endif -- 2.39.2