]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
#pragma once
authorTimePath <andrew.hardaker1995@gmail.com>
Mon, 14 Mar 2016 07:27:41 +0000 (18:27 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Mon, 14 Mar 2016 07:27:41 +0000 (18:27 +1100)
92 files changed:
qcsrc/client/_all.qh
qcsrc/client/announcer.qh
qcsrc/client/autocvars.qh
qcsrc/client/bgmscript.qh
qcsrc/client/commands/all.qh
qcsrc/client/commands/cl_cmd.qh
qcsrc/client/csqc_constants.qh
qcsrc/client/defs.qh
qcsrc/client/hud/hud.qh
qcsrc/client/hud/hud_config.qh
qcsrc/client/main.qh
qcsrc/client/mapvoting.qh
qcsrc/client/miscfunctions.qh
qcsrc/client/mutators/events.qh
qcsrc/client/player_skeleton.qh
qcsrc/client/quickmenu.qh
qcsrc/client/scoreboard.qh
qcsrc/client/shownames.qh
qcsrc/client/teamradar.qh
qcsrc/client/wall.qh
qcsrc/client/weapons/projectile.qh
qcsrc/menu/_all.qh
qcsrc/menu/command/all.qh
qcsrc/menu/command/menu_cmd.qh
qcsrc/menu/draw.qh
qcsrc/menu/menu.qh
qcsrc/menu/mutators/events.qh
qcsrc/menu/skin.qh
qcsrc/menu/xonotic/util.qh
qcsrc/server/_all.qh
qcsrc/server/anticheat.qh
qcsrc/server/antilag.qh
qcsrc/server/autocvars.qh
qcsrc/server/bot/aim.qh
qcsrc/server/bot/bot.qh
qcsrc/server/bot/havocbot/havocbot.qh
qcsrc/server/bot/havocbot/roles.qh
qcsrc/server/bot/havocbot/scripting.qh
qcsrc/server/bot/navigation.qh
qcsrc/server/bot/scripting.qh
qcsrc/server/bot/waypoints.qh
qcsrc/server/campaign.qh
qcsrc/server/cheats.qh
qcsrc/server/cl_client.qh
qcsrc/server/cl_impulse.qh
qcsrc/server/cl_player.qh
qcsrc/server/command/all.qh
qcsrc/server/command/banning.qh
qcsrc/server/command/cmd.qh
qcsrc/server/command/common.qh
qcsrc/server/command/getreplies.qh
qcsrc/server/command/radarmap.qh
qcsrc/server/command/sv_cmd.qh
qcsrc/server/command/vote.qh
qcsrc/server/constants.qh
qcsrc/server/defs.qh
qcsrc/server/g_damage.qh
qcsrc/server/g_hook.qh
qcsrc/server/g_subs.qh
qcsrc/server/g_world.qh
qcsrc/server/ipban.qh
qcsrc/server/item_key.qh
qcsrc/server/mapvoting.qh
qcsrc/server/miscfunctions.qh
qcsrc/server/mutators/all.qh
qcsrc/server/mutators/events.qh
qcsrc/server/mutators/gamemode.qh
qcsrc/server/mutators/mutator.qh
qcsrc/server/pathlib/main.qh
qcsrc/server/pathlib/pathlib.qh
qcsrc/server/pathlib/utility.qh
qcsrc/server/playerdemo.qh
qcsrc/server/portals.qh
qcsrc/server/race.qh
qcsrc/server/round_handler.qh
qcsrc/server/scores.qh
qcsrc/server/scores_rules.qh
qcsrc/server/spawnpoints.qh
qcsrc/server/steerlib.qh
qcsrc/server/sys-post.qh
qcsrc/server/sys-pre.qh
qcsrc/server/teamplay.qh
qcsrc/server/weapons/accuracy.qh
qcsrc/server/weapons/common.qh
qcsrc/server/weapons/csqcprojectile.qh
qcsrc/server/weapons/hitplot.qh
qcsrc/server/weapons/selection.qh
qcsrc/server/weapons/spawning.qh
qcsrc/server/weapons/throwing.qh
qcsrc/server/weapons/tracing.qh
qcsrc/server/weapons/weaponstats.qh
qcsrc/server/weapons/weaponsystem.qh

index 5297347533bbd341c854d4be567b6595a4d9bfbe..746734dee2011e048533d0113c4d59a089ea4e82 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_ALL_H
-#define CLIENT_ALL_H
+#pragma once
 
 #include <common/util.qh>
 
@@ -11,5 +10,3 @@
 #include "defs.qh"
 #include "main.qh"
 #include "miscfunctions.qh"
-
-#endif
index 314c6602d8dd8871051557bcd3a2b52593b0635f..c7c0eb0259963f39e5100f31c3f3e76d97147c16 100644 (file)
@@ -1,8 +1,5 @@
-#ifndef CLIENT_ANNOUNCER_H
-#define CLIENT_ANNOUNCER_H
+#pragma once
 
 void Announcer();
 
 string AnnouncerOption();
-
-#endif
index 59ba16a5fda8d5442c8072683b3d5254637c74ba..4b2571135ddd19481172e867e56e865608f7518d 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_AUTOCVARS_H
-#define CLIENT_AUTOCVARS_H
+#pragma once
 
 bool autocvar__con_chat_maximized;
 bool autocvar__hud_configure;
@@ -454,4 +453,3 @@ float autocvar_crosshair_rpc_alpha = 1;
 float autocvar_crosshair_rpc_size = 1;
 int autocvar_cl_nade_timer;
 bool autocvar_cl_items_nofade;
-#endif
index d979e79d0731042f9d26579e6917bf50a0d34bd4..18b0d5ee4231c5c9e95998fdad5be86331b0b1e8 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_BGMSCRIPT_H
-#define CLIENT_BGMSCRIPT_H
+#pragma once
 
 entityclass(BGMScript);
 class(BGMScript) .string bgmscript;
@@ -14,5 +13,3 @@ class(BGMScript) .float just_toggled;
 void BGMScript_InitEntity(entity e);
 float doBGMScript(entity e);
 #endif
-
-#endif
index 3a15cca9a57dfdd48d7bc45c89c0a71fd0d40fe6..2df61f004bc21a072bdd32bbc4bd37e75bddf8b1 100644 (file)
@@ -1,8 +1,5 @@
-#ifndef CLIENT_COMMANDS_ALL_H
-#define CLIENT_COMMANDS_ALL_H
+#pragma once
 
 #include <common/command/all.qh>
 
 #include "cl_cmd.qh"
-
-#endif
index d53d1b6a6e671ee0c752b0deb534c4ba309f7b7a..857adeaac450ddbff73ca9e67a103563c0f66af9 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_COMMANDS_CL_CMD_H
-#define CLIENT_COMMANDS_CL_CMD_H
+#pragma once
 
 void Cmd_HUD_SetFields(int);
 void Cmd_HUD_Help();
@@ -23,5 +22,3 @@ REGISTRY_SORT(CLIENT_COMMANDS)
 STATIC_INIT(CLIENT_COMMANDS_aliases) {
        FOREACH(CLIENT_COMMANDS, true, localcmd(sprintf("alias %1$s \"%2$s %1$s ${* ?}\"\n", it.m_name, "qc_cmd_cl")));
 }
-
-#endif
index d70de9cb3ff3c2720d9a0c26dab47293bde2d8e0..2ea1e746f7c60e12104563d3dd2751ff66bb2fcc 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_CSQC_CONSTANTS
-#define CLIENT_CSQC_CONSTANTS
+#pragma once
 
 // Mask Constants (set .drawmask on entities; use R_AddEntities to add all entities based on mask)
 const int              MASK_ENGINE                                             = BIT(0);
@@ -141,5 +140,3 @@ const int CAMERA_FREE = 1;
 const int CAMERA_CHASE = 2;
 
 const int EF_NOMODELFLAGS = BIT(23);
-
-#endif
index d3db0ebfde08cfdd0763fbe46b49b33cf9528ae2..84bcb2b3d1de61b9417c250c5f28d1ad4ce79270 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_DEFS_H
-#define CLIENT_DEFS_H
+#pragma once
 
 // Additional OPTIONAL Fields and Globals
 //float                intermission;
@@ -122,5 +121,3 @@ float uid2name_dialog;
 .bool csqcmodel_isdead; // used by shownames and miscfunctions (entcs_IsDead) to know when a player is dead
 
 #define player_currententnum (spectatee_status > 0 ? spectatee_status : player_localnum + 1)
-
-#endif
index 45dd4887f2678ff435c54cb5a7b203d55c4f73b4..b931a34ef735ef930dc98570ecdf2c98e1ee2777 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_HUD_H
-#define CLIENT_HUD_H
+#pragma once
 
 #include <common/weapons/all.qh>
 
@@ -412,4 +411,3 @@ void HUD_Notify_Push(string icon, string attacker, string victim);
 
 var void HUD_ModIcons_GameType(vector pos, vector size);
 void HUD_ModIcons_SetFunc();
-#endif
index 05792286da30ae888483227e59178f0065fb7c28..32c846076145def23fbe3bb769dfbbec2bb63473 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_HUD_CONFIG_H
-#define CLIENT_HUD_CONFIG_H
+#pragma once
 
 const int S_MOUSE1 = 1;
 const int S_MOUSE2 = 2;
@@ -18,5 +17,3 @@ void HUD_Configure_Frame();
 void HUD_Configure_PostDraw();
 
 float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary);
-
-#endif
index 084dfba2f81ae92ca1a577c232b00353dedbf635..9c672ad0777af18ecbda2b568b088c8981893563 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_MAIN_H
-#define CLIENT_MAIN_H
+#pragma once
 
 #include <common/constants.qh>
 #include <common/weapons/all.qh>
@@ -152,5 +151,3 @@ float hud;
 float view_quality;
 int framecount;
 .float health;
-
-#endif
index bbc05d884f9aa2e011b8f5bdd295063f0cf13c40..ebc107a0b2584196023b052fdb82c02470ed16f5 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_MAPVOTING_H
-#define CLIENT_MAPVOTING_H
+#pragma once
 
 #include <common/constants.qh>
 void MapVote_Draw();
@@ -11,4 +10,3 @@ float MapVote_InputEvent(float bInputType, float nPrimary, float nSecondary);
 void Net_MapVote_Picture();
 
 float mv_active;
-#endif
index a2fa4edced358d7d6812ce5b5b7c38e7b4177eb2..32563598b3f79ad2189aa2f2b48d54c9ea0e3b24 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_MISCFUNCTIONS_H
-#define CLIENT_MISCFUNCTIONS_H
+#pragma once
 
 entity players;
 entity teams;
@@ -155,5 +154,3 @@ void Accuracy_LoadLevels();
 void Accuracy_LoadColors();
 
 vector Accuracy_GetColor(float accuracy);
-
-#endif
index 7141e4455e1849f4ccbd0d12aa55d095b612d4ac..f86ef533361699e0e107f6b153d5687975f1ba7c 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_MUTATORS_EVENTS_H
-#define CLIENT_MUTATORS_EVENTS_H
+#pragma once
 
 #include <common/mutators/base.qh>
 
@@ -132,5 +131,3 @@ MUTATOR_HOOKABLE(Weapon_ImpactEffect, EV_Weapon_ImpactEffect);
        /** also, argv() can be used */ i(int, cmd_argc) \
        /**/
 MUTATOR_HOOKABLE(HUD_Command, EV_HUD_Command);
-
-#endif
index 48a3111d32210cd12b7d272b65f859137c719966..50462bdbb298948af6a8b61305eea2cf62b165be 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_PLAYER_SKELETON
-#define CLIENT_PLAYER_SKELETON
+#pragma once
 
 void free_skeleton_from_frames(entity e);
 void skeleton_from_frames(entity e, float is_dead);
@@ -11,4 +10,3 @@ class(Skeleton) .int bone_weapon;
 class(Skeleton) .float bone_aim[MAX_AIM_BONES];
 class(Skeleton) .float bone_aimweight[MAX_AIM_BONES];
 class(Skeleton) .float fixbone;
-#endif
index cf5f66649c13d6548bc332b944aa2400d6b0c4a4..373cd2755ca0c55199d0cedfb8e581ce294c866e 100644 (file)
@@ -1,8 +1,5 @@
-#ifndef CLIENT_QUICKMENU_H
-#define CLIENT_QUICKMENU_H
+#pragma once
 
 bool QuickMenu_InputEvent(float bInputType, float nPrimary, float nSecondary);
 bool QuickMenu_IsOpened();
 void QuickMenu_Mouse();
-
-#endif
index 4e43cb65fd303ab7a1f1f6beb8e0b34d7ecfaac4..8fccae94845577193f1fbbb2997859707bf5e735 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_SCOREBOARD_H
-#define CLIENT_SCOREBOARD_H
+#pragma once
 
 float xmin, xmax, ymin, ymax, sbwidth;
 
@@ -12,4 +11,3 @@ void HUD_InitScores();
 void HUD_UpdatePlayerPos(entity pl);
 void HUD_UpdateTeamPos(entity Team);
 float HUD_WouldDrawScoreboard();
-#endif
index 1304c537059f232cc8f82e60018b1f2d469eff3c..24f6568d26629396ff7322bfae3b97695f545d3d 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_SHOWNAMES_H
-#define CLIENT_SHOWNAMES_H
+#pragma once
 
 entityclass(ShowNames);
 class(ShowNames) .float healthvalue;
@@ -9,5 +8,3 @@ class(ShowNames) .float fadedelay;
 class(ShowNames) .float pointtime;
 
 void Draw_ShowNames_All();
-
-#endif
index ca7ec87b59f14e58deab8b41a291556e00379fcd..0b1884ccf3a713d8c77488bd7d809dcf3d013cb3 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_TEAMRADAR_H
-#define CLIENT_TEAMRADAR_H
+#pragma once
 
 const int MAX_TEAMRADAR_TIMES = 32;
 
@@ -44,5 +43,3 @@ void draw_teamradar_icon(vector coord, entity icon, entity pingdata, vector rgb,
 void draw_teamradar_link(vector start, vector end, int colors);
 
 void teamradar_loadcvars();
-
-#endif
index f93eb3ae1421ce8db213e1212713ec6a2fab89d0..11aebd0ed5e25df349f6fa12a8288e345e47f27f 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_WALL_H
-#define CLIENT_WALL_H
+#pragma once
 
 entityclass(Wall);
 class(Wall) .float lip;
@@ -19,5 +18,3 @@ class(Wall) .vector saved;
 void Ent_Wall_Draw(entity this);
 
 void Ent_Wall_Remove(entity this);
-
-#endif
index 1b0d313aa9cc9cea10a3c1d38d8e34790fa2d2f8..66e1be4707629bffeee90a18f694373958a4a2b1 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CLIENT_WEAPONS_PROJECTILE_H
-#define CLIENT_WEAPONS_PROJECTILE_H
+#pragma once
 
 entityclass(Projectile);
 class(Projectile).int traileffect;
@@ -30,5 +29,3 @@ void loopsound(entity e, int ch, string samp, float vol, float attn);
 void Ent_RemoveProjectile(entity this);
 
 const int FL_PROJECTILE = BIT(15);
-
-#endif
index 0c4f926dd95c7bf76107bd2eeb972c7a17230788..33313d637c8c1be0046056b8675b1d7650db464a 100644 (file)
@@ -1,7 +1,4 @@
-#ifndef MENU_ALL_H
-#define MENU_ALL_H
+#pragma once
 
 #include "draw.qh"
 #include "xonotic/util.qh"
-
-#endif
index 6377a4c08de3d46c7c9f5ae6ae427c8595b61b40..05b4eb2e49b3f26b5c0c9ab780e2247876cbb910 100644 (file)
@@ -1,8 +1,5 @@
-#ifndef MENU_COMMANDS_ALL_H
-#define MENU_COMMANDS_ALL_H
+#pragma once
 
 #include <common/command/command.qh>
 
 #include "menu_cmd.qh"
-
-#endif
index 364b13690a08e1336733b5669c24856ca9b7ca96..31537bd40f96da7d2ae4b5902a59040c617fe406 100644 (file)
@@ -1,5 +1,3 @@
-#ifndef MENU_CMD_H
-#define MENU_CMD_H
+#pragma once
 
 void GameCommand(string command);
-#endif
index 74bcae3042dfd886529aff28737462144e193272..b12534f7d73756d49d5a2703f036562a4bf76d85 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef DRAW_H
-#define DRAW_H
+#pragma once
 
 // from the engine
 vector drawfontscale;
@@ -41,4 +40,3 @@ vector globalToBoxSize(vector v, vector scale);
 
 float draw_TextWidth_WithColors(string s, vector size);
 float draw_TextWidth_WithoutColors(string s, vector size);
-#endif
index a4cdbc5f512bea1eba011c2dd64f30ea00b11c6f..8bc24a16ecb89e544ef32d14cffde4fd27afbf0c 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef MENU_H
-#define MENU_H
+#pragma once
 
 #include "draw.qh"
 #include "skin.qh"
@@ -58,4 +57,3 @@ const string MENU_SOUND_WINNER  = "sound/menu/winner.wav";
 
 void m_play_focus_sound();
 void m_play_click_sound(string soundfile);
-#endif
index 2b881992ee6a5177b9585ea12ffdacdec01d1c00..f43199ceada1ca00caea4851bb42302c38cc445d 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef MENU_MUTATORS_EVENTS_H
-#define MENU_MUTATORS_EVENTS_H
+#pragma once
 
 #include <common/mutators/base.qh>
 
@@ -34,4 +33,3 @@ string cmd_string;
        /** whole command, use only if you really have to */ i(string, cmd_string) \
        /**/
 MUTATOR_HOOKABLE(Menu_ConsoleCommand, EV_Menu_ConsoleCommand);
-#endif
index ebb622b0a1ecb89e9eb8c599362515576344a609..7cc2d2d3b4d49084f8bbbd2c4fce75cdf100c3d6 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef SKIN_H
-#define SKIN_H
+#pragma once
 
 #define SKINBEGIN
 #define SKINVECTOR(name,def) vector SKIN##name = def
@@ -27,4 +26,3 @@
 #undef SKINFLOAT
 #undef SKINVECTOR
 #undef SKINBEGIN
-#endif
index 79ce7c5eefa7abbaca8a705961879b6503762a13..d433352cf5a1734e70429d8ed33e0faf0d11fc9f 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef MENU_UTIL_H
-#define MENU_UTIL_H
+#pragma once
 
 float GL_CheckExtension(string ext);
 float GL_Have_TextureCompression();
@@ -54,4 +53,3 @@ string _Nex_ExtResponseSystem_RecommendedServers;
 float _Nex_ExtResponseSystem_RecommendedServersNeedsRefresh;
 
 void CheckSendCvars(entity me, string cvarnamestring);
-#endif
index 6a78f5320860405d9de73aa018f83b9bd3dffe46..b52046037c973422e4465009bf2c920992c75915 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef SERVER_ALL_H
-#define SERVER_ALL_H
+#pragma once
 
 int maxclients;
 
@@ -51,5 +50,3 @@ const string STR_OBSERVER = "observer";
 #include "constants.qh"
 #include "defs.qh"
 #include "miscfunctions.qh"
-
-#endif
index e1055ac44e95f2f96951d7b535dba9cd77882f3a..c3e99078db66a72c6a658b582424466e58ce80f3 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef ANTICHEAT_H
-#define ANTICHEAT_H
+#pragma once
 
 void anticheat_init(entity this);
 void anticheat_report();
@@ -14,4 +13,3 @@ void anticheat_startframe();
 void anticheat_endframe();
 
 void anticheat_fixangle(entity this);
-#endif
index bb9fe805268f3466d4711bd02215957f7600121d..ee7b5d4e37c0095628517a93ca765173f32bbd14 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef ANTILAG_H
-#define ANTILAG_H
+#pragma once
 
 void antilag_record(entity e, entity store, float t);
 vector antilag_takebackorigin(entity e, entity store, float t);
@@ -11,4 +10,3 @@ void antilag_clear(entity e, entity store);
 
 #define ANTILAG_LATENCY(e) min(0.4, e.ping * 0.001)
 // add one ticrate?
-#endif
index cd950738e9e6736cd8e2f80e9d78a709f2e22032..26fa625af1cfffe4e25a8c1f39dd954d63f4b840 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef SERVER_AUTOCVARS_H
-#define SERVER_AUTOCVARS_H
+#pragma once
 
 bool autocvar__notarget;
 bool autocvar__campaign_testrun;
@@ -545,4 +544,3 @@ float autocvar_g_frozen_revive_falldamage;
 int autocvar_g_frozen_revive_falldamage_health;
 bool autocvar_g_frozen_damage_trigger;
 float autocvar_g_frozen_force;
-#endif
index d1cbd0d629a71368ed5b8ea74fe26b4a73ea245d..3ea036b5fa09c34b076a07a3b26387d0389e82a3 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef AIM_H
-#define AIM_H
+#pragma once
 /*
  * Globals and Fields
  */
@@ -98,4 +97,3 @@ float findtrajectorywithleading(vector org, vector m1, vector m2, entity targ, f
 vector bot_shotlead(vector targorigin, vector targvelocity, float shotspeed, float shotdelay);
 
 .void(float t, float f1, float f2, entity e1, vector v1, vector v2, vector v3, vector v4) lag_func;
-#endif
index 7927942ea73fdd5d2a34843d512f781054500027..f4ba92cd30609b2f55d7e1cbef642277e82ba88b 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef BOT_H
-#define BOT_H
+#pragma once
 /*
  * Globals and Fields
  */
@@ -115,4 +114,3 @@ void bot_serverframe();
 void() havocbot_setupbot;
 
 void bot_calculate_stepheightvec();
-#endif
index 2d3d3291320201437aa034ee666420ce0807fe0d..99c7b00751a117b9af95341bab0fc9c6cc294d0c 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef HAVOCBOT_H
-#define HAVOCBOT_H
+#pragma once
 
 /*
  * Globals and Fields
@@ -63,4 +62,3 @@ void(float ratingscale, vector org, float sradius) havocbot_goalrating_enemyplay
 .entity draggedby;
 .float ladder_time;
 .entity ladder_entity;
-#endif
index cfabf0534d5d5ddcb3dc34f9d9663dc48d268d9e..6120ce033e670cf8914a116c0c3288b58f1dbd9b 100644 (file)
@@ -1,4 +1,2 @@
-#ifndef ROLES_H
-#define ROLES_H
+#pragma once
 void havocbot_goalrating_controlpoints(float ratingscale, vector org, float sradius);
-#endif
index c09dbdeacc8edb72251e7852b329fba4af17d65d..07cb4d6e6066dd358153ef24a76b93a0efab6a93 100644 (file)
@@ -1,5 +1,3 @@
-#ifndef HAVOCBOT_SCRIPTING_H
-#define HAVOCBOT_SCRIPTING_H
+#pragma once
 
 void bot_clearqueue(entity bot);
-#endif
index cf4a5ce5b261dcf6c4e154bef405c480d85a2afb..efa2843a23a5730fe9ecb53809e4f4044036d0ab 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef NAVIGATION_H
-#define NAVIGATION_H
+#pragma once
 /*
  * Globals and Fields
  */
@@ -77,4 +76,3 @@ void botframe_updatedangerousobjects(float maxupdate);
 
 entity navigation_findnearestwaypoint(entity ent, float walkfromwp);
 float navigation_waypoint_will_link(vector v, vector org, entity ent, float walkfromwp, float bestdist);
-#endif
index d5cdda9d69859d483cd69786389e8236bb2bd701..3ec51cc789965ff02091e93ad43f8ce12cbfc4d3 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef BOT_SCRIPTING_H
-#define BOT_SCRIPTING_H
+#pragma once
 
 #define BOT_EXEC_STATUS_IDLE 0
 #define BOT_EXEC_STATUS_PAUSED 1
@@ -80,4 +79,3 @@ void bot_list_commands();
 float bot_execute_commands();
 entity find_bot_by_name(string name);
 entity find_bot_by_number(float number);
-#endif
index 8e0dd0fe627e07c1ecfc689da28454cf8280e8c9..3033ced7073b9dcd8743cb3c0ee3414774a974a7 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef WAYPOINTS_H
-#define WAYPOINTS_H
+#pragma once
 /*
  * Globals and Fields
  */
@@ -66,4 +65,3 @@ entity waypoint_spawnpersonal(vector position);
 vector waypoint_fixorigin(vector position);
 
 void botframe_autowaypoints();
-#endif
index f5228c269338cd146e6c4656a45044185e59c56b..8be26fef86dea36b6ab1d252692fb7fb398f50f3 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CAMPAIGN_H
-#define CAMPAIGN_H
+#pragma once
 
 // this must be included BEFORE campaign_common.h to make this a memory saving
 #define CAMPAIGN_MAX_ENTRIES 2
@@ -16,4 +15,3 @@ void CampaignLevelWarp(float n);
 float campaign_bots_may_start;
 // campaign mode: bots shall spawn but wait for the player to spawn before they do anything
 // in other game modes, this is ignored
-#endif
index 4ead519eb0ff563390abf8afaf409c1288e79872..03b5ac8dd527d7a66b8adff8f1f6f887efcdc1fb 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CHEATS_H
-#define CHEATS_H
+#pragma once
 
 #include "../common/impulses/all.qh"
 
@@ -16,4 +15,3 @@ float CheatFrame();
 const float CHRAME_DRAG = 8;
 
 void Drag_MoveDrag(entity from, entity to); // call this from CopyBody
-#endif
index b4c125c6bac84f93aad5bedb1a63ed83eb231c7f..a310043165173dd278f4e9f4430f45729e53528c 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef CL_CLIENT_H
-#define CL_CLIENT_H
+#pragma once
+
 float c1, c2, c3, c4;
 
 void play_countdown(float finished, string samp);
@@ -10,5 +10,3 @@ float Spectate(entity pl);
 
 #define SPECTATE_COPY() [[accumulate]] void SpectateCopy(entity this, entity spectatee)
 #define SPECTATE_COPYFIELD(fld) SPECTATE_COPY() { this.(fld) = spectatee.(fld); }
-
-#endif
index aecf079b787f35cf8022f38ba23205675272eee1..50edc2c9c5e80c956cc1405f8b00fc56eea5b3ef 100644 (file)
@@ -1,5 +1,3 @@
-#ifndef CL_IMPULSE_H
-#define CL_IMPULSE_H
+#pragma once
 
 void ImpulseCommands(entity this);
-#endif
index 3d95cdab9ea57b0145437bf6b549bad80905c291..22c595f66d3cd9ca4a59ce2e507e0d9f65dc2524 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CL_PLAYER_H
-#define CL_PLAYER_H
+#pragma once
 
 .entity pusher;
 .float pushltime;
@@ -38,5 +37,3 @@ void PlayerDamage(entity this, entity inflictor, entity attacker, float damage,
 /** to be used by `prvm_edictset server playernumber muted 1` */
 .float muted;
 int Say(entity source, float teamsay, entity privatesay, string msgin, float floodcontrol);
-
-#endif
index 0d74ec2739518fe6e487bca835ec0b11a45844bf..5add6184e0037fbff1bce625f6d5c84b87eb22ea 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef SERVER_COMMANDS_ALL_H
-#define SERVER_COMMANDS_ALL_H
+#pragma once
 
 #include <common/command/command.qh>
 REGISTRY(SERVER_COMMANDS, BITS(7))
@@ -27,5 +26,3 @@ STATIC_INIT(SERVER_COMMANDS_aliases) {
 #include "getreplies.qh"
 #include "radarmap.qh"
 #include "vote.qh"
-
-#endif
index a330ff1b0b9e1781a4b54f3482f42e23ba0c3016..d6b1ae60f0f779511ca65dd6830323c134c91fe3 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef BANNING_H
-#define BANNING_H
+#pragma once
 
 // ====================================
 //  Declarations for kick/ban commands
@@ -19,5 +18,3 @@ void BanCommand_macro_write_aliases(float fh);
 
 void BanCommand_macro_help();
 float BanCommand_macro_usage(float argc);
-
-#endif
index 1f2365822a4551ced188153991e3fa5045bb9a93..0dd27dd89582681a0ac510a832fe850ddb5797c9 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CMD_H
-#define CMD_H
+#pragma once
 
 // =================================================
 //  Declarations for server side networked commands
@@ -14,4 +13,3 @@ string MapVote_Suggest(string m);
 
 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
 void ClientCommand_macro_write_aliases(float fh);
-#endif
index 6aed511e1bc45c898dc8d7db98cbb28ebd1e195e..2524d31e48256de2a7173d7c2f7bd0d826d2f0aa 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef COMMAND_COMMON_H
-#define COMMAND_COMMON_H
+#pragma once
 
 #include <common/command/command.qh>
 REGISTRY(COMMON_COMMANDS, BITS(7))
@@ -186,6 +185,3 @@ void CommonCommand_macro_write_aliases(float fh)
 {
        FOREACH(COMMON_COMMANDS, true, LAMBDA(CMD_Write_Alias("qc_cmd_svcmd", it.m_name, it.m_description)));
 }
-
-
-#endif
index a0f9b21ef8fae18214da4fa6d47fa34954b1952e..7b436079227f47c1d1621cb891b5bd87400122c0 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef GETREPLIES_H
-#define GETREPLIES_H
+#pragma once
 
 // ======================================================
 //  Declarations for reply messages, re-worked by Samual
@@ -21,4 +20,3 @@ string getladder();
 string getmaplist();
 string getlsmaps();
 string getmonsterlist();
-#endif
index fea60ba9e1143238181d3f5a131ea7034edcb3f7..4332003f8f4cd15aa885cc14afd7698ca46fcca7 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef RADARMAP_H
-#define RADARMAP_H
+#pragma once
 
 // ===========================================
 //     Declarations for radarmap generation code
@@ -16,6 +15,3 @@ string doublehex = "000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D
 // removes the need to bound()
 
 float RadarMap_Make(float argc);
-
-
-#endif
index 8fa66dac47567fe28f92a42505fbdeebff80d646..29db3ee4df20d5edd5c4f4614ca5fccc1f5b16b9 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef SV_CMD_H
-#define SV_CMD_H
+#pragma once
 
 // =================================================
 //  Declarations for server side game commands
@@ -17,4 +16,3 @@ float shuffleteams_teams[SHUFFLETEAMS_MAX_TEAMS];     // maximum of 4 teams
 
 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
 void GameCommand_macro_write_aliases(float fh);
-#endif
index 0cab6c1d4a7559bcd5cf9f9381b664ebc79d2486..7b10b37eb70bcf2a0e50a45fb105b14846d7b59c 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef VOTE_H
-#define VOTE_H
+#pragma once
 
 // ================================================
 //  Declarations for the vote system/vote commands
@@ -55,4 +54,3 @@ void reset_map(float dorespawn);
 void ReadyCount();
 void ReadyRestart_force();
 void VoteCount(float first_count);
-#endif
index c1ea1c6c61dcab81aa2df27e52f5b10377605d4e..c8717f0058afdbf92e8bd703edb5f8c20d8a7fed 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef SERVER_CONSTANTS_H
-#define SERVER_CONSTANTS_H
+#pragma once
 
 const int FL_WEAPON = BIT(13);
 const int FL_POWERUP = BIT(14);
@@ -19,5 +18,3 @@ const int RESPAWN_SILENT = 2;
 const int NUM_PLAYERSKINS_TEAMPLAY = 3;
 
 const int ASSAULT_VALUE_INACTIVE = 1000;
-
-#endif
index 27755db96f7cf1122731515f0849210c51f34e21..245719b32101e4ad4c0c3d7433ca4ffb0999bfa6 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef SERVER_DEFS_H
-#define SERVER_DEFS_H
+#pragma once
 
 #include "../common/weapons/all.qh"
 #include "../common/stats.qh"
@@ -452,5 +451,3 @@ const int MIF_GUIDED_CONFUSABLE = MIF_GUIDED_HEAT | MIF_GUIDED_AI;
 
 .float init_for_player_needed;
 .void(entity) init_for_player;
-
-#endif
index 6a8ca99b462c878e1d30c581c3e6dfccd6246ae9..be570eb7fbe3af5287291096e80ff6af81887433 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef G_DAMAGE_H
-#define G_DAMAGE_H
+#pragma once
 
 #if defined(CSQC)
 #elif defined(MENUQC)
@@ -118,4 +117,3 @@ void Fire_ApplyDamage(entity e);
 void Fire_ApplyEffect(entity e);
 
 void fireburner_think();
-#endif
index 95ba88205b90666a612cb4232b7c00774dba76b0..900c23d36abac3eb9ce8dfb5edf0c1a8681c6bf3 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef HOOK_H
-#define HOOK_H
+#pragma once
 
 // Wazat's grappling hook
 .entity                hook;
@@ -16,4 +15,3 @@ const float HOOK_WAITING_FOR_RELEASE = BIT(4);
 
 void GrappleHookInit();
 vector hook_shotorigin[4];
-#endif
index 81516f9357c56344f932fe70b439f282a6ddc72e..90378d510d07bec60f75228bc7021c02e7fd6651 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef G_SUBS_H
-#define G_SUBS_H
+#pragma once
 
 void SUB_NullThink();
 
@@ -165,4 +164,3 @@ void InitTrigger();
 void InitSolidBSPTrigger();
 
 float InitMovingBrushTrigger();
-#endif
index 920ef71e184c1cc71d5962d57cd9c639f140d8f4..3703abad2367ccb59a3a24feb146738b63cb7554 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef G_WORLD_H
-#define G_WORLD_H
+#pragma once
 
 float checkrules_equality;
 float checkrules_suddendeathwarning;
@@ -24,5 +23,3 @@ void Map_Goto_SetStr(string nextmapname);
 void Map_Goto(float reinit);
 float DoNextMapOverride(float reinit);
 void CheckRules_World();
-
-#endif
index e758cbca4e94fdaef60a33f7f0cef18141fe3c4e..946f44f9351a14b3be143cadf3bdecf5da0dc38f 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef IPBAN_H
-#define IPBAN_H
+#pragma once
 
 void Ban_SaveBans();
 void Ban_LoadBans();
@@ -8,4 +7,3 @@ float Ban_MaybeEnforceBanOnce(entity client);
 float BanCommand(string command);
 
 void OnlineBanList_URI_Get_Callback(float id, float status, string data);
-#endif
index 4a2acd85b7d1c015d8303f3c4d120b4b25178292..50be5f8dba7ef998c238dd68fbb531f6951da142 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef ITEM_KEY
-#define ITEM_KEY
+#pragma once
 
 /**
  * Returns the bit ID of a key
@@ -25,5 +24,3 @@ float item_keys_usekey(entity l, entity p);
  */
 string item_keys_keylist(float keylist);
 #endif
-
-#endif
index e4e6b0b52ac8b49582751d4cd32f868824c9a5cc..3a1a0ad6493807f2dcf5e38bb94a07dbcc95384b 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef MAPVOTING_H
-#define MAPVOTING_H
+#pragma once
 
 // definitions for functions used outside mapvoting.qc
 void MapVote_Start();
@@ -13,4 +12,3 @@ string GameTypeVote_MapInfo_FixName(string m);
 float gametypevote;
 string getmapname_stored;
 float mapvote_initialized;
-#endif
index 4cb4e20b33b1537d041a6c3db75bd937c2bc5c7a..f87860f8f132a7267a68ab6ca8d69412b722c111 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef MISCFUNCTIONS_H
-#define MISCFUNCTIONS_H
+#pragma once
 
 #include "../common/t_items.qh"
 
@@ -369,5 +368,3 @@ entity initialize_entity_first;
 float sound_allowed(float dest, entity e);
 void InitializeEntity(entity e, void() func, float order);
 void SetCustomizer(entity e, float() customizer, void() uncustomizer);
-
-#endif
index e586ec74e925a77d8d614048bf2936b0c27a0cda..4a1f2b3533ef390d5757d7927cf9afdcaab26643 100644 (file)
@@ -1,9 +1,6 @@
+#pragma once
+
 #include "mutator.qh"
 #include "gamemode.qh"
 
-#ifndef SERVER_MUTATORS_H
-#define SERVER_MUTATORS_H
-
 #include "all.inc"
-
-#endif
index d81b2b1a5b630c62d0edb78e5c1dd94a6cf6a418..b83e40abc1837e80e7cd3023ad5d2db12946dcff 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef SERVER_MUTATORS_EVENTS_H
-#define SERVER_MUTATORS_EVENTS_H
+#pragma once
 
 #include <common/mutators/base.qh>
 
@@ -857,4 +856,3 @@ float uricb_id;
 float uricb_status;
 string uricb_data;
 MUTATOR_HOOKABLE(URI_GetCallback, EV_URI_GetCallback);
-#endif
index b8370465022e5179dd50e57dd9f418e3e4e4e236..de3a215fe9d3a819dd00806d78e047c8f4980270 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef GAMEMODE_H
-#define GAMEMODE_H
+#pragma once
 
 #include "../cl_client.qh"
 #include "../cl_player.qh"
@@ -44,5 +43,3 @@ float redalive, bluealive, yellowalive, pinkalive;
 .float bluealive_stat = _STAT(BLUEALIVE);
 .float yellowalive_stat = _STAT(YELLOWALIVE);
 .float pinkalive_stat = _STAT(PINKALIVE);
-
-#endif
index 485bce29874eaff11f0af3faf529973ef37603e8..636efab13924c0a9bcdbcdc4199832909e8d1cff 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef MUTATOR_H
-#define MUTATOR_H
+#pragma once
 
 #include <common/mutators/base.qh>
 
@@ -39,5 +38,3 @@
 #include <lib/warpzone/anglestransform.qh>
 #include <lib/warpzone/server.qh>
 #include <lib/warpzone/util_server.qh>
-
-#endif
index 177c432cf3c9210e8996dd54fbc043f68cb69bd5..6c8e4dc7692304b5bbd29dd85bb291b3557f783d 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef PATHLIB_MAIN_H
-#define PATHLIB_MAIN_H
+#pragma once
+
 float buildpath_nodefilter_none(vector n,vector c,vector p);
 entity path_build(entity next, vector where, entity prev, entity start);
-#endif
index 5c331d4b404fc035ba83bbb14497e4b952e347b7..c7159481853ddc02afa154e4570a9136b76aa188 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef PATHLIB_H
-#define PATHLIB_H
+#pragma once
 
 .entity pathlib_list;
 .entity path_next;
@@ -107,5 +106,3 @@ var float  pathlib_makenode(entity parent,vector start, vector to, vector goal,f
 var float  buildpath_nodefilter(vector n,vector c,vector p);
 
 var float  pathlib_wpp_waypointcallback(entity wp, entity wp_prev);
-
-#endif
index bf72549a03b95c827a86ba8814ef9f33512e080b..3544e86ca2b659125a3a99a3bfef5dab008e9f07 100644 (file)
@@ -1,6 +1,5 @@
-#ifndef PATHLIB_UTILITY
-#define PATHLIB_UTILITY
+#pragma once
+
 float fsnap(float val,float fsize);
 entity pathlib_nodeatpoint(vector where);
 float tile_check_plus2(vector where);
-#endif
index 7c19314328b25109ff3400e20fe2215ac8647c15..0fd42dca6b24257fad827cae16124d3edc8156cc 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef PLAYERDEMO_H
-#define PLAYERDEMO_H
+#pragma once
 
 void playerdemo_init(entity this);
 void playerdemo_shutdown();
@@ -8,4 +7,3 @@ float playerdemo_read(entity this);
 
 void playerdemo_open_read(string f);
 void playerdemo_open_write(string f);
-#endif
index 68ff068a77788aa0f28fb6bddd333a61e9de48d4..f3528d081072ce7e4314a5ca80b4a6a03bdff8ee 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef PORTALS_H
-#define PORTALS_H
+#pragma once
 
 .float portal_id;
 .entity portal_in, portal_out;
@@ -12,4 +11,3 @@ void Portal_ClearWithID(entity own, float id);
 
 vector Portal_ApplyTransformToPlayerAngle(vector transform, vector vangle);
 void Portal_ClearAll_PortalsOnly(entity own);
-#endif
index c78c7765bb40a4d5f81a1aeed5212ec8bbe0217a..51b2aa8896a38180b2296fcbe1e0d3c99a042d6c 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef RACE_H
-#define RACE_H
+#pragma once
 
 bool g_race_qualifying;
 
@@ -58,5 +57,3 @@ void race_SendRankings(float pos, float prevpos, float del, float msg);
 void race_RetractPlayer();
 
 void race_InitSpectator();
-
-#endif
index 448788442842ab2bd631abb1daefbcf3a0a7678a..7d4499ce4a2859ed008b5a289eb754aa710f1324 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef ROUND_HANDLER_H
-#define ROUND_HANDLER_H
+#pragma once
 
 entity round_handler;
 .float delay; // stores delay from round end to countdown start
@@ -23,5 +22,3 @@ void round_handler_Remove();
 #define round_handler_CountdownRunning() (!round_handler.wait && round_handler.cnt)
 #define round_handler_IsRoundStarted() (!round_handler.wait && !round_handler.cnt)
 #define round_handler_GetEndTime() (round_handler.round_endtime)
-
-#endif
index 8c9af4534fa1158106727abaf7b52716f4ad0908..497e5a6aee7f129e1d44a146e576d81ffb870776 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef SCORES_H
-#define SCORES_H
+#pragma once
 
 #include "../common/constants.qh"
 
@@ -129,4 +128,3 @@ string GetTeamScoreString(float tm, float shortString);
  * nospectators: exclude spectators
  */
 entity PlayerScore_Sort(.float field, float teams, float strict, float nospectators);
-#endif
index b307eebfb1f746bcd84c25542893f8b4026bb912..1d2646bb83e6d544d6986f3e60d2d8e119d7a9ee 100644 (file)
@@ -1,8 +1,5 @@
-#ifndef SCORES_RULES_H
-#define SCORES_RULES_H
+#pragma once
 
 void ScoreRules_basics(float teams, float sprio, float stprio, float score_enabled);
 void ScoreRules_basics_end();
 void ScoreRules_generic();
-
-#endif
index ef2ab6687800227d3caa022fa3b8b09761346081..b010350908550a976d0bf4ec3398e03cb90a11af 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef SPAWNPOINTS_H
-#define SPAWNPOINTS_H
+#pragma once
 
 .vector spawnpoint_score;
 float spawnpoint_nag;
@@ -8,4 +7,3 @@ entity Spawn_FilterOutBadSpots(entity firstspot, float mindist, float teamcheck)
 entity SelectSpawnPoint (float anypoint);
 spawnfunc(info_player_deathmatch);
 void spawnpoint_use();
-#endif
index 3c10bfd0275407c3b1fcd87ae5da619620ca4e24..32ac07c3cda37b75d951f8e00197beb0428d30ee 100644 (file)
@@ -1,10 +1,7 @@
-#ifndef STEERLIB_H
-#define STEERLIB_H
+#pragma once
 
 .vector steerto;
 
 vector steerlib_arrive(vector point,float maximal_distance);
 vector steerlib_attract2(entity this, vector point, float min_influense,float max_distance,float max_influense);
 vector steerlib_pull(vector point);
-
-#endif
index aca5969ba665ad426903000a8838e50b4367e206..a74e521ab0c935e48a92b0ef9546099e9e3b9b59 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef SERVER_SYS_POST_H
-#define SERVER_SYS_POST_H
+#pragma once
 
 #undef objerror
 #undef droptofloor
@@ -39,5 +38,3 @@ var void remove(entity e);
 #undef IT_QUAD
 
 #pragma noref 0
-
-#endif
index be17b6923b3b2bbbd63dac0b760d8adc60ace165..ca6a2044d375c7d5b1f2cd6b1921145d00e982fa 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef SERVER_SYS_PRE_H
-#define SERVER_SYS_PRE_H
+#pragma once
 
 #define objerror builtin_objerror
 #define droptofloor builtin_droptofloor
@@ -34,5 +33,3 @@
 #define IT_QUAD             _IT_QUAD /* BIT(22) */
 
 #pragma noref 1
-
-#endif
index 6b3bdf0f2a1e517f4e93d03209abd227dae16c18..5a2fe7b12e950322efd833c821d490f880b5d557 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef TEAMPLAY_H
-#define TEAMPLAY_H
+#pragma once
 
 string cache_mutatormsg;
 string cache_lastmutatormsg;
@@ -54,4 +53,3 @@ float JoinBestTeam(entity pl, float only_return_best, float forcebestteam);
 void SV_ChangeTeam(float _color);
 
 void ShufflePlayerOutOfTeam (float source_team);
-#endif
index 33c1fbf3924aacf3a71cab0a3cf4acf2de6033b5..35b0174ec7dae3ab1a0a926b66c2116fbb20ca3e 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef ACCURACY_H
-#define ACCURACY_H
+#pragma once
 
 .bool cvar_cl_accuracy_data_share;
 REPLICATE(cvar_cl_accuracy_data_share, bool, "cl_accuracy_data_share");
@@ -28,4 +27,3 @@ void accuracy_add(entity e, float w, float fired, float hit);
 // helper
 bool accuracy_isgooddamage(entity attacker, entity targ);
 bool accuracy_canbegooddamage(entity attacker);
-#endif
index b97457ad99697c017846226b10730a3466e0c6f2..7633c386e77c247092350bcdff51be40f5400f63 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef WEAPONS_COMMON_H
-#define WEAPONS_COMMON_H
+#pragma once
 
 void W_GiveWeapon (entity e, float wep);
 .float prevstrengthsound;
@@ -7,4 +6,3 @@ void W_GiveWeapon (entity e, float wep);
 void W_PlayStrengthSound(entity player);
 float W_CheckProjectileDamage(entity inflictor, entity projowner, int deathtype, float exception);
 void W_PrepareExplosionByDamage(entity attacker, void() explode);
-#endif
index c2ecc3e4d45cd9d9b4e03a810121739ebcabb239..af8c96085b3c5d8cd2e7419ee19dadf691d359d1 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CSQCPROJECTILE_H
-#define CSQCPROJECTILE_H
+#pragma once
 
 .float csqcprojectile_clientanimate;
 
@@ -7,4 +6,3 @@ void CSQCProjectile(entity e, float clientanimate, float type, float docull);
 void UpdateCSQCProjectile(entity e);
 void UpdateCSQCProjectileAfterTeleport(entity e);
 void CSQCProjectile_Check(entity e);
-#endif
index 3b111f1c5433d382e38a0116b49309b65ab79347..8aa15a61b4f37222725bc539f51d4e7682545766 100644 (file)
@@ -1,9 +1,7 @@
-#ifndef HITPLOT_H
-#define HITPLOT_H
+#pragma once
 
 .float hitplotfh;
 
 void W_HitPlotAnalysis(entity player, vector screenforward, vector screenright, vector screenup);
 void W_HitPlotOpen(entity player);
 void W_HitPlotClose(entity player);
-#endif
index b4e2fb81cdb1174f76daaf014416b8af14b7b530..5800f9415ed20d514d9b6609f62fed106756158d 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef SELECTION_H
-#define SELECTION_H
+#pragma once
 
 // switch between weapons
 void Send_WeaponComplain(entity e, float wpn, float type);
@@ -30,4 +29,3 @@ void W_PreviousWeapon(float list);
 
 // previously used if exists and has ammo, (second) best otherwise
 void W_LastWeapon(entity this);
-#endif
index fd66a8e87b97c94a4a17ba7f33805692eea0054c..9ce5ca30e4da2426627d11a463e0fcc321c8c243 100644 (file)
@@ -1,7 +1,5 @@
-#ifndef SPAWNING_H
-#define SPAWNING_H
+#pragma once
 
 string W_Apply_Weaponreplace(string in);
 
 void weapon_defaultspawnfunc(entity this, Weapon e);
-#endif
index 1bf50c14a400e0bd7e16ca9ac203471de1970e54..488791295b59bf8ed52df983ed949c6164abb2a6 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef THROWING_H
-#define THROWING_H
+#pragma once
 
 .float savenextthink;
 void thrown_wep_think();
@@ -13,4 +12,3 @@ float W_IsWeaponThrowable(float w);
 void W_ThrowWeapon(vector velo, vector delta, float doreduce);
 
 void SpawnThrownWeapon(entity this, vector org, float w);
-#endif
index c4f63835c359f07b9fb8f2ea932c2f89179ebe9c..bb486d8ce87717e49fcc772bd07e60b2b9aa7156 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef TRACING_H
-#define TRACING_H
+#pragma once
 
 vector w_shotorg;
 vector w_shotdir;
@@ -56,4 +55,3 @@ entity fireBullet_trace_callback_eff;
 entity fireBullet_last_hit;
 void fireBullet_trace_callback(vector start, vector hit, vector end);
 void fireBullet(vector start, vector dir, float spread, float max_solid_penetration, float damage, float force, float dtype, int tracereffects);
-#endif
index 0018f190669d533d2397973adc80d66a7e3bc11f..f031223e78304f3e5540c4855b18e638e981e3e6 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef WEAPONSTATS_H
-#define WEAPONSTATS_H
+#pragma once
 
 float weaponstats_buffer;
 
@@ -11,4 +10,3 @@ void WeaponStats_LogDamage(float awep, float abot, float vwep, float vbot, float
 void WeaponStats_LogKill(float awep, float abot, float vwep, float vbot);
 
 #define WEAPONSTATS_GETINDEX(awep,abot,vwep,vbot) (((vwep) + (awep) * (WEP_LAST - WEP_FIRST + 1) - (WEP_FIRST + WEP_FIRST * (WEP_LAST - WEP_FIRST + 1))) * 4 + (abot) * 2 + (vbot))
-#endif
index 0000ac2155b762298e15bbb956187955cbec7fb5..03cb7c13ce0e207649da20fb283e78965efa1171 100644 (file)
@@ -1,6 +1,4 @@
-#ifndef WEAPONSYSTEM_H
-#define WEAPONSYSTEM_H
-
+#pragma once
 
 float internalteam;
 float weaponswapping;
@@ -33,5 +31,3 @@ bool weapon_prepareattack_check(Weapon thiswep, entity actor, .entity weaponenti
 void weapon_prepareattack_do(entity actor, .entity weaponentity, float secondary, float attacktime);
 
 void weapon_thinkf(entity actor, .entity weaponentity, WFRAME fr, float t, void(Weapon thiswep, entity actor, .entity weaponentity, int fire) func);
-
-#endif