]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add missing include guards
authorTimePath <andrew.hardaker1995@gmail.com>
Wed, 30 Dec 2015 11:34:37 +0000 (22:34 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Wed, 30 Dec 2015 11:34:37 +0000 (22:34 +1100)
qcsrc/client/hud/all.qh
qcsrc/common/items/item/powerup.qh
qcsrc/common/minigames/minigame/all.qh
qcsrc/common/state.qh
qcsrc/common/triggers/func/door.qh
qcsrc/common/triggers/func/ladder.qh
qcsrc/common/triggers/func/train.qh
qcsrc/common/triggers/trigger/keylock.qh
qcsrc/common/triggers/trigger/multi.qh
qcsrc/menu/gamesettings.qh

index 4f8cee5c8425eedef771f74e8f0427ababa39da4..2e458e6dd54672fead5e4c4ff2408d2098e01da2 100644 (file)
@@ -1,2 +1,4 @@
+#pragma once
+
 #include "hud.qh"
 #include "hud_config.qh"
index fd477354f1709db2f03199820a5dbcc5b2b2a8ff..0a3d907288a203cee53c8e61575de30ebd0cfb87 100644 (file)
@@ -1,10 +1,10 @@
+#pragma once
+
 #ifdef SVQC
     // For FL_POWERUP
     #include <server/constants.qh>
 #endif
 
-#ifndef POWERUP_H
-#define POWERUP_H
 #include "pickup.qh"
 CLASS(Powerup, Pickup)
 #ifdef SVQC
@@ -16,5 +16,3 @@ CLASS(Powerup, Pickup)
     ATTRIB(Powerup, m_respawntimejitter, float(), GET(g_pickup_respawntimejitter_powerup))
 #endif
 ENDCLASS(Powerup)
-
-#endif
index f552db98b5f4208ecd104537d785bcdfa4cbfa86..5567b25681d4522cd38d3b9859ef70fdb80cd0ad 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 #if defined(SVQC)
 #include "../sv_minigames.qh"
 #elif defined(CSQC)
index 177935445db8621fd8f573a17a67cd38969654c5..e2ba5f3858b1dcef031e5009b4fcab9d7d7cde76 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 /**
  * Purpose: common player state, usable on client and server
  * Client: singleton representing the viewed player
index f7ed28c5bbc463c3371e16959b38270cbae7d25f..84a9d6aa234224fe3d2d35b6c1640941c73b85f1 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 // door constants
 const int DOOR_START_OPEN = 1;
 const int DOOR_DONT_LINK = 4;
index 774e7cf408857c945a1a8a85a29a99512ab09795..26cbbda032b0422dc6f7e9c6e749be79a4ccd3d7 100644 (file)
@@ -1,2 +1,4 @@
+#pragma once
+
 .float ladder_time;
 .entity ladder_entity;
index d42d8a8a0c98b031d6666c82557d8aef14421e25..8b6f7c02da22651e3f44884e76b9968d5a86c874 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 #ifdef CSQC
 .float dmgtime;
 #endif
index a59cb3f69583856eb921f07a708b9cb8abf8ac78..756d3b25a5c861867fc8f0b525836d40c21f5671 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 #ifdef CSQC
 bool item_keys_usekey(entity l, entity p)
 {
index 32a3c3131e6000f6690d2dcd7461700154b4eb76..1a67dfd3580342a017192ebc6af9cf213703ad9e 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 #ifdef SVQC
 void multi_trigger();
 void multi_reset(entity this);
index 0db9f77f2e08faf4c98d61205561c7e5af704e6f..868ac0fe3182570457360c000511704b21e3bb7d 100644 (file)
@@ -1,6 +1,6 @@
+#pragma once
+
 #ifdef MENUQC
-#ifndef GAMESETTINGS_H
-#define GAMESETTINGS_H
 
 #include "xonotic/tab.qc"
 
@@ -12,4 +12,3 @@ REGISTER_REGISTRY(Settings)
     REGISTER(Settings, MENU, id, m_id, NEW(Lazy, LAZY(id)))
 
 #endif
-#endif