]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
#pragma once
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 7 Aug 2016 11:02:23 +0000 (21:02 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 7 Aug 2016 11:02:23 +0000 (21:02 +1000)
79 files changed:
qcsrc/common/anim.qh
qcsrc/common/animdecide.qh
qcsrc/common/campaign_common.qh
qcsrc/common/command/all.qh
qcsrc/common/command/command.qh
qcsrc/common/command/generic.qh
qcsrc/common/command/markup.qh
qcsrc/common/command/rpn.qh
qcsrc/common/constants.qh
qcsrc/common/csqcmodel_settings.qh
qcsrc/common/deathtypes/all.qh
qcsrc/common/effects/all.qh
qcsrc/common/effects/effect.qh
qcsrc/common/effects/qc/all.qh
qcsrc/common/effects/qc/globalsound.qh
qcsrc/common/effects/qc/rubble.qh
qcsrc/common/ent_cs.qh
qcsrc/common/impulses/all.qh
qcsrc/common/items/all.qh
qcsrc/common/items/inventory.qh
qcsrc/common/items/item.qh
qcsrc/common/items/item/ammo.qh
qcsrc/common/items/item/armor.qh
qcsrc/common/items/item/health.qh
qcsrc/common/items/item/pickup.qh
qcsrc/common/mapinfo.qh
qcsrc/common/minigames/cl_minigames.qh
qcsrc/common/minigames/cl_minigames_hud.qh
qcsrc/common/minigames/minigames.qh
qcsrc/common/minigames/sv_minigames.qh
qcsrc/common/models/all.qh
qcsrc/common/models/model.qh
qcsrc/common/monsters/all.qh
qcsrc/common/monsters/monster.qh
qcsrc/common/monsters/spawn.qh
qcsrc/common/monsters/sv_monsters.qh
qcsrc/common/net_notice.qh
qcsrc/common/notifications/all.qh
qcsrc/common/physics/movelib.qh
qcsrc/common/physics/movetypes/movetypes.qh
qcsrc/common/physics/player.qh
qcsrc/common/playerstats.qh
qcsrc/common/sounds/all.qh
qcsrc/common/sounds/sound.qh
qcsrc/common/stats.qh
qcsrc/common/t_items.qh
qcsrc/common/teams.qh
qcsrc/common/triggers/func/breakable.qh
qcsrc/common/triggers/func/include.qh
qcsrc/common/triggers/include.qh
qcsrc/common/triggers/platforms.qh
qcsrc/common/triggers/subs.qh
qcsrc/common/triggers/target/include.qh
qcsrc/common/triggers/target/music.qh
qcsrc/common/triggers/teleporters.qh
qcsrc/common/triggers/trigger/impulse.qh
qcsrc/common/triggers/trigger/include.qh
qcsrc/common/triggers/trigger/jumppads.qh
qcsrc/common/triggers/trigger/secret.qh
qcsrc/common/triggers/trigger/swamp.qh
qcsrc/common/triggers/trigger/viewloc.qh
qcsrc/common/triggers/triggers.qh
qcsrc/common/turrets/all.qh
qcsrc/common/turrets/config.qh
qcsrc/common/turrets/sv_turrets.qh
qcsrc/common/turrets/turret.qh
qcsrc/common/turrets/util.qh
qcsrc/common/util.qh
qcsrc/common/vehicles/all.qh
qcsrc/common/vehicles/cl_vehicles.qh
qcsrc/common/vehicles/sv_vehicles.qh
qcsrc/common/vehicles/vehicle.qh
qcsrc/common/vehicles/vehicle/bumblebee.qh
qcsrc/common/vehicles/vehicle/raptor.qh
qcsrc/common/viewloc.qh
qcsrc/common/weapons/all.qh
qcsrc/common/weapons/calculations.qh
qcsrc/common/weapons/config.qh
qcsrc/common/weapons/weapon.qh

index acf6735f37924df3ed97fb5602150d56ffa51831..84d59720d467c199bc2593aee5ce540ec4ad0903 100644 (file)
@@ -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
index 39ca54ff2f7783514755385f4e3af49b557d54c9..ebdba4e5d4aaab64df58f2c36f82f32b7800f611 100644 (file)
@@ -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
index 3f494a4639b723a310a26682d7d743e05971eaa6..3bdc8725c2803b5c9c27f6f0f30c9841d6ea8294 100644 (file)
@@ -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
index 129090d3ab442b0bfeaf468434a778fbe4f7147a..15285b92ecac7e33144040d0ffbbb26b58ba992e 100644 (file)
@@ -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
index 72eaa18dabb3189c7185ced9e66eeb686ddab832..0b3741a06cd2976007bc34dfd38da44d1eab8a0e 100644 (file)
@@ -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
index f8139aaf47e4a894bb803645628683b1168d5c96..b39c79901457de6a77b18d42ed93ac5113d71d61 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef COMMAND_GENERIC_H
-#define COMMAND_GENERIC_H
+#pragma once
 
 #include <common/constants.qh>
 
@@ -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
index bccc78d0bcd3537d43c4aaa1c91410d47fad7a26..7a1b3876af07e726b3d120678562214f399e2f3e 100644 (file)
@@ -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
index 3c5a8019b2a0cfee52c3ab8e9c500edde24563fa..ba028e248431806131679777bf116d8430d4f07a 100644 (file)
@@ -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
index e6e5596939dc38b5f7269af128c87fe4d0820ace..6c775560394259816e14622b1584cb2843b34d59 100644 (file)
@@ -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
index 39cec43225ea9ff430422133ea0d7ae91df4a844..9c8dd42917a9e85de2a97c863230273cacd26c2c 100644 (file)
@@ -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
index 903087947416dfe6978a24900a72020fa3af3354..0466c230ab3b709f40343ce3d2bba3c2c3442894 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef DEATHTYPES_ALL_H
-#define DEATHTYPES_ALL_H
+#pragma once
 
 #include <common/notifications/all.qh>
 
@@ -47,5 +46,3 @@ const int DT_FIRST = BIT(13);
 string Deathtype_Name(int deathtype);
 
 #include "all.inc"
-
-#endif
index e0e9a3ca869d16b85734356e49802dba3fc706b9..7581618375bd5bfc0b949b0b023435db4bebdd8e 100644 (file)
@@ -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
index e58d42ca7b4ba55f9ed82af6b623bd1d21a6b883..7802f0a91be3f3ad464e41b69ad62d1a2b09c0da 100644 (file)
@@ -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
index 5b9b364313cea105d933bd2516bb6abdaaaf9b9a..54cf6b6ff007b674b5b0225f74b054e61863fe43 100644 (file)
@@ -1,4 +1,3 @@
-#ifndef EFFECTS_QC
-#define EFFECTS_QC
+#pragma once
+
 #include "all.inc"
-#endif
index 640d330f1c0cc139d46266e77b05115507c7cc9d..1df0b1a42b1145eeeea104092fec1a98d5b5b25d 100644 (file)
@@ -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
index 1665e4ccef38e8c37db1d984dacea596214ff6b2..83a6941213d627dbeca64e0174cc9e662696310e 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef RUBBLE_H
-#define RUBBLE_H
+#pragma once
 
 #ifdef CSQC
 
@@ -46,5 +45,3 @@ entity RubbleNew(string cname)
 }
 
 #endif
-
-#endif
index 1c72b351f7ff7e4e65b48fd9e5bf599f86c11a40..fdaaab2d57c0f37be4345a824a3892a3fdd90e51 100644 (file)
@@ -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
index 6780ac16d0fa1ddd83c766319d05f2d9289b2c01..45a8f1323b9f142bd02b5eae8ad61202a273ae63 100644 (file)
@@ -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
index 18cc5ae4f3b707dfd11caea3774cc2473d2587f2..ff54a3a299f8a3e614fc0e7c62992591b0c8777d 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef ITEMS_ALL_H
-#define ITEMS_ALL_H
+#pragma once
 
 #include <common/command/all.qh>
 
@@ -33,5 +32,3 @@ GENERIC_COMMAND(dumpitems, "Dump all items to the console") {
 #ifndef MENUQC
 string Item_Model(string item_mdl);
 #endif
-
-#endif
index c7f602e653835d6b519843bea740acc2ca0caf10..4ca11c268664f1b33a69b5809cda3dafdd60cb29 100644 (file)
@@ -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
index 4ab7af4f2317341ebeb4d1f625dfb8659cecb3d8..ed33169fcdb2b7e97714fb8fe9b3737e08d88e47 100644 (file)
@@ -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
index 84f20483e4f2902d65cc325ee8d0f0ca31d0509b..ed2ada7cf4ad36a5be5714a650a58a53c1a53051 100644 (file)
@@ -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
index adb93e7c94eb8010c2ca8de8da34e6da1e7b7f2f..6e79a2200a7ced73104807c1bbe83a5631f943b3 100644 (file)
@@ -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
index f7bfb5c9386d48e3d0d972fd04db2bc714769dd9..3a0249d5132084ac1f7a1157e5ff22ebaa716ca9 100644 (file)
@@ -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
index 6d914948182482ea6267a1a49352231188dd6c3b..5949a71edace0f8767e8bf937e31b6d3936cd3ce 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef PICKUP_H
-#define PICKUP_H
+#pragma once
+
 #include <common/items/inventory.qh>
 #include <common/items/item.qh>
 CLASS(Pickup, GameItem)
@@ -38,5 +38,3 @@ CLASS(Pickup, GameItem)
     bool ITEM_HANDLE(Pickup, Pickup this, entity item, entity player);
 #endif
 ENDCLASS(Pickup)
-
-#endif
index 5ab36f3ae2548d4cafc3f2936976f910eb9e59f9..52ee1bd9c07215d40f1b6416a2419553841f721b 100644 (file)
@@ -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
index cc24d4bf0c69256717525a81ced1e28360ac5941..602c7973585c1510e3903b4d6fe1d5d6d696ebaa 100644 (file)
@@ -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
index f170c590dea2037745df88de968f9c5ca75ad092..ef44ea025f5633635496415635e9ce6665293075 100644 (file)
@@ -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
index 7425149f389d9b484c38d089ebef97c2b750f6df..284001a0a22e97997b107a386601d9f75207345f 100644 (file)
@@ -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
index de9e3f69610d41b3a42b3eeb5ac1fffc01c99914..b5015a1f40fd3e452d83ce2d23ed5a510ce63c4c 100644 (file)
@@ -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
index f3bfd64c7532a833757eed9545782933b72272aa..ce98629411fd0cd6c3ce798a813acf5dd0fd602f 100644 (file)
@@ -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
index 91fb278ae0a5ec975c1580d4f7e023f8b96793e2..f651b709e4681bc3b0115c2f623889d0a2abdfd7 100644 (file)
@@ -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
index 1e23f3287940218b3c8a882033d3f12b42c88fd2..84f7a0d78f6d19d4121334681655c170e19f2569 100644 (file)
@@ -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
index 7b963807083f62671b0f61388ae43dd3271cd5b1..b345fa6fc155cc4039b47bcc122c91b1365fe062 100644 (file)
@@ -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
index 2ebdcc54e80dadee46142c9435e10007147f9b05..0aba5c19d4326f2220c89c576468d022263be4f3 100644 (file)
@@ -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
index ffade7b6a2accc4ccbfeb0fac9c82a1ebb5e7a0e..56509cf66130287530503eed396bd3a32fc2d35b 100644 (file)
@@ -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
index b36f631fe2a17676c452e272f8176290d09d29eb..1134205185474bda2be0142568448d3e711ac494 100644 (file)
@@ -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
index 4ff276c78b416c6f2460c24d43a60c8ff523200d..f364225b31eb961887b0fca31241d500bf0402d4 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef NOTIFICATIONS_H
-#define NOTIFICATIONS_H
+#pragma once
 
 #include <common/command/all.qh>
 
@@ -800,5 +799,3 @@ REGISTRY_END(Notifications)
 }
 
 #include "all.inc"
-
-#endif
index 250c3ba2b28e121d7e4568a4a87baf134d5ac45b..e0659a40c197ffcbeeffb775a974682974466212 100644 (file)
@@ -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
index 35a73d3331755d5f24b04ef175ce3f3208bf7420..db5d29cefda9ec18af34da81e6e57708630c53a4 100644 (file)
@@ -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
index ae1bd8785586cb792ef18a0e81096b02fca99004..9e7b799d027257e72d1201f6f013fcbffe57eb99 100644 (file)
@@ -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
index ec309c4f4c191fc9d46500e57ff8de3d0571e2ab..73496ba7639bd1b168b54c60fce009e2dbdd9916 100644 (file)
@@ -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
index a7fe25f17d1e324d07069f46e16057efbd22ba96..763aae67cfac58bb0b48fb599823b58500635d51 100644 (file)
@@ -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
index 519f910b0d3fee4721a698c549a59316841d658b..b2cca4fee1614ab6f98929edf61fd10e33cb0199 100644 (file)
@@ -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
index c7fc313a8802b082147098b3c1e391570ebff0ab..a24243bb6d4ec659532b39018fe458f7fc4078ea 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef STATS_H
-#define STATS_H
+#pragma once
 
 #ifdef SVQC
 #include <server/cl_client.qh>
@@ -323,6 +322,3 @@ REGISTER_STAT(GUNALIGN, int, this.cvar_cl_gunalign)
 #ifdef SVQC
 SPECTATE_COPYFIELD(_STAT(GUNALIGN))
 #endif
-
-
-#endif
index 1ed807c7c1ecea93a1059a50eb96f42bf577beed..1c65e806af7e97544ef801904c7f9c1aeb0e741d 100644 (file)
@@ -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
index aeaf078dce4b564b6c2a77df146821ff5a77c935..1f8a603dd01744b1dde6a4f13f98b5b32bb61d03 100644 (file)
@@ -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
index 75cfb94c690cf09d51c5ad8eaa1211bf5012043c..761a2c7a98f350fe53629bc13f74e3874eb19673 100644 (file)
@@ -1,8 +1,5 @@
-#ifndef TRIGGERS_FUNC_BREAKABLE_H
-#define TRIGGERS_FUNC_BREAKABLE_H
+#pragma once
 
 #ifdef SVQC
 spawnfunc(func_breakable);
 #endif
-
-#endif
index 628355cb79aa0280f2173848d03c0bca5387e419..4e8b94cd1c88779b56d0ec81fc99b429bc0bcf55 100644 (file)
@@ -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
index 25688e3ecb692e7114c6ec739d5dbf83236d7aa9..f3f81738a19f7a73106863b91a90a0bee7c47c3d 100644 (file)
@@ -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
index f0727be3ca1fe59cf57b8779d60e20178ffc533b..c40467494f367adf9c68af7390dbd55ee6ec120c 100644 (file)
@@ -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
index 096022c848644ac499c5c674e4f0fe1c709079e1..4f98d5ae15cd92335c4b76282814566358ba1fa7 100644 (file)
@@ -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
index 4e44b9762b901a762436b82ba5f507ebb840cfb4..c0f7cad443a0fd62f5cfad147ba3f207e0b662b5 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef TRIGGERS_TARGET_INCLUDE_H
-#define TRIGGERS_TARGET_INCLUDE_H
+#pragma once
 
 #include "music.qh"
-
-#endif
index a9232107ebbbed9407716c1e112acfab553a35b8..80b3684a4e9a768b8ef17e4ea596f463d9cc886d 100644 (file)
@@ -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
index c0f45f263d588087d724d1e52a59e590275f6b38..513ed3e26928460e636b36940fa0d009c5213241 100644 (file)
@@ -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
index 67d6361fbed2ea61c76c4bafb8e2952d6f06d485..a6961f5d2e7693920f56dac39df1d78011b88f91 100644 (file)
@@ -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
index 63cdb019017254c0fdeba69e347dc8bc21d7256c..8aa6b2b1729244d8f548102d7d8ebd8b6c3a4a34 100644 (file)
@@ -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
index e03f14d335a2bf9aad0db26bbc11e1bcf7b9e832..76d244da55b2d0b8e814b1d3574b53f293c01ff6 100644 (file)
@@ -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
index c2a155ce72e0114e790e092d56dceacca0f25c74..e483316a4086da58721cea32794b1d5f5de3453c 100644 (file)
@@ -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
index 7ae50bac42a9b7d4bbc7fc6ba5582b6fd2fd4993..f4df98378d544659b1c22f0c663919fb95f90c17 100644 (file)
@@ -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
index 881197a3b82fb57b7c96bc4f16ed3c14fd527b04..167fc218f7707c5f00b2f70d612d654f21ee1999 100644 (file)
@@ -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
index 82c0916c19228c2dd6605b24a6f503d6b3c07061..8a8eb566c19b2ed844035390e6236e78fd1e18b3 100644 (file)
@@ -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
index a993b9218a22cf77ae2df4f80870d2115b3b9fde..476da2d18e0423d7c242963fc14408ff3e7d7ad1 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef TURRETS_ALL_H
-#define TURRETS_ALL_H
+#pragma once
 
 #include <common/command/all.qh>
 #include "config.qh"
@@ -75,5 +74,3 @@ const int TUR_FIRST = 1;
 REGISTER_TURRET(Null, NEW(Turret));
 
 #include "turret/_mod.inc"
-
-#endif
index bb2a81b847eb740251b5ba126335dfd8295e5e49..caa68a86487dcd3780eb9c277f93aab8eacaa635 100644 (file)
@@ -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
index 29d08c6290fd6a0699204197e2484283b591c669..c5a3728d134cf20b1e2f068dc803ff943b647cad 100644 (file)
@@ -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
index a66952833a10fe877c7ba2a806cc474da50be5ba..dc84acc7401b7457508fcb85429f696204c595d6 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef TURRET_H
-#define TURRET_H
+#pragma once
 
 #include <common/weapons/all.qh>
 
@@ -176,5 +175,3 @@ const int TNSF_MOVE         = 64;
 const int TNSF_ANIM         = 128;
 
 const int TNSF_FULL_UPDATE  = 16777215;
-
-#endif
index d5c948d573e85fb46b2cc28de60d413989766392..5f52695bafe7b2df5d9c26e8c6f74ffaa78b73b0 100644 (file)
@@ -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
index 6ec6036fdda24342c808e9ccf95903df62faf6c6..81acde950eba2fc63cd450375f0bcebb9c1e7b16 100644 (file)
@@ -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
index b58389d4abb7955feb7c3c80934583fadd4f6f1b..158492f661e7e1326cc248283c3b4841bb64c76a 100644 (file)
@@ -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
index 5293030c19fe9ecda1aad3c8e733edabc29eda72..327074b98641e72631bbb3089ecc3829b008dca5 100644 (file)
@@ -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
index e593922fcb0f4beb788cc77ad65d1b0bf754cca2..158191f654eed354806d07cf2140d7a6db1176b4 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef VEHICLES_DEF_H
-#define VEHICLES_DEF_H
+#pragma once
 #ifdef SVQC
 
 #include <common/turrets/sv_turrets.qh>
@@ -110,4 +109,3 @@ bool vehicles_crushable(entity e);
 float vehicle_altitude(entity this, float amax);
 
 #endif
-#endif
index 7b1194e8eb846720c438e950b842f4663976e8dc..1578e0a7d549832e8aa33f548dabd213c49b50d9 100644 (file)
@@ -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
index b043038921460bb2768aca34238932a49352e566..b675185d49454681ed545b493921aceb421735c1 100644 (file)
@@ -1,9 +1,6 @@
-#ifndef BUMBLEBEE_H
-#define BUMBLEBEE_H
+#pragma once
 
 #ifdef CSQC
 
 void CSQC_BUMBLE_GUN_HUD();
 #endif
-
-#endif
index f24939ba9d21a2f697c41b6592e9ca970e598aad..fd9a7de790b8f49287d0092eafe1663ec0130da2 100644 (file)
@@ -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
index 4c4d05f92653d6d76deb44fde08bc2cb48721f44..7725d2d8fd040ab506048fb91ce787e0a0cbc676 100644 (file)
@@ -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
index 24ea41c645bb124cfd735b35dd7ba8f33c295283..bff6e6db72318ab1be776870cb038d63650111f2 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef WEAPONS_ALL_H
-#define WEAPONS_ALL_H
+#pragma once
 
 #include <common/command/all.qh>
 #include <common/stats.qh>
@@ -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
index 4feed9fc549e16a48d44c204435f4a83e21672d7..05eb9d9baf299ff4455f06eabed1adea87294587 100644 (file)
@@ -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
index d88e18194bf7c37af8991483eb4448f7448e8a50..753147307b3a253e9fb86b5b056bcbdab222c096 100644 (file)
@@ -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
index 8b844f13e08e39d8b0585ac94122733b3597e6ee..b2ede3c503596bc19d1a8e3c173a91ac36bc4859 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef WEAPON_H
-#define WEAPON_H
+#pragma once
+
 #include <common/items/item/pickup.qh>
 #include <common/stats.qh>
 
@@ -216,5 +216,3 @@ int GetAmmoStat(.int ammotype);
 
 string W_Sound(string w_snd);
 string W_Model(string w_mdl);
-
-#endif