Browse Source

Add missing #include guards.

asheep
Night Owl 7 years ago
parent
commit
41c9b072e5
  1. 3
      cl_dll/ammohistory.h
  2. 3
      cl_dll/health.h
  3. 4
      cl_dll/hud_spectator.h
  4. 3
      cl_dll/parsemsg.h
  5. 4
      dlls/gamerules.h
  6. 6
      dlls/plane.h
  7. 3
      dlls/skill.h
  8. 3
      dlls/spectator.h
  9. 4
      dlls/squad.h
  10. 3
      dlls/squadmonster.h
  11. 3
      dlls/util.h

3
cl_dll/ammohistory.h

@ -15,6 +15,8 @@
// //
// ammohistory.h // ammohistory.h
// //
#ifndef AMMOHISTORY_H
#define AMMOHISTORY_H
// this is the max number of items in each bucket // this is the max number of items in each bucket
#define MAX_WEAPON_POSITIONS MAX_WEAPON_SLOTS #define MAX_WEAPON_POSITIONS MAX_WEAPON_SLOTS
@ -137,3 +139,4 @@ public:
}; };
extern HistoryResource gHR; extern HistoryResource gHR;
#endif // AMMOHISTORY_H

3
cl_dll/health.h

@ -12,6 +12,8 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#ifndef HEALTH_H
#define HEALTH_H
#define DMG_IMAGE_LIFE 2 // seconds that image is up #define DMG_IMAGE_LIFE 2 // seconds that image is up
@ -122,3 +124,4 @@ private:
void CalcDamageDirection( vec3_t vecFrom ); void CalcDamageDirection( vec3_t vecFrom );
void UpdateTiles( float fTime, long bits ); void UpdateTiles( float fTime, long bits );
}; };
#endif // HEALTH_H

4
cl_dll/hud_spectator.h

@ -5,8 +5,8 @@
// $NoKeywords: $ // $NoKeywords: $
//============================================================================= //=============================================================================
#ifndef SPECTATOR_H #ifndef HUD_SPECTATOR_H
#define SPECTATOR_H #define HUD_SPECTATOR_H
#pragma once #pragma once
#include "cl_entity.h" #include "cl_entity.h"

3
cl_dll/parsemsg.h

@ -15,6 +15,8 @@
// //
// parsemsg.h // parsemsg.h
// //
#ifndef PARSEMSG_H
#define PARSEMSG_H
#define ASSERT( x ) #define ASSERT( x )
@ -30,6 +32,7 @@ float READ_COORD( void );
float READ_ANGLE( void ); float READ_ANGLE( void );
float READ_HIRESANGLE( void ); float READ_HIRESANGLE( void );
#endif // PARSEMSG_H

4
dlls/gamerules.h

@ -15,7 +15,8 @@
//========================================================= //=========================================================
// GameRules // GameRules
//========================================================= //=========================================================
#ifndef GAMERULES_H
#define GAMERULES_H
//#include "weapons.h" //#include "weapons.h"
//#include "items.h" //#include "items.h"
class CBasePlayerItem; class CBasePlayerItem;
@ -361,3 +362,4 @@ protected:
}; };
extern DLL_GLOBAL CGameRules *g_pGameRules; extern DLL_GLOBAL CGameRules *g_pGameRules;
#endif // GAMERULES_H

6
dlls/plane.h

@ -12,12 +12,12 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#ifndef PLANE_H
#define PLANE_H
//========================================================= //=========================================================
// Plane // Plane
//========================================================= //=========================================================
#ifndef PLANE_H
#define PLANE_H
class CPlane class CPlane
{ {
public: public:

3
dlls/skill.h

@ -15,6 +15,8 @@
//========================================================= //=========================================================
// skill.h - skill level concerns // skill.h - skill level concerns
//========================================================= //=========================================================
#ifndef SKILL_H
#define SKILL_H
struct skilldata_t struct skilldata_t
{ {
@ -143,3 +145,4 @@ extern DLL_GLOBAL int g_iSkillLevel;
#define SKILL_EASY 1 #define SKILL_EASY 1
#define SKILL_MEDIUM 2 #define SKILL_MEDIUM 2
#define SKILL_HARD 3 #define SKILL_HARD 3
#endif // SKILL_H

3
dlls/spectator.h

@ -13,6 +13,8 @@
* *
****/ ****/
// Spectator.h // Spectator.h
#ifndef SPECTATOR_H
#define SPECTATOR_H
class CBaseSpectator : public CBaseEntity class CBaseSpectator : public CBaseEntity
{ {
@ -25,3 +27,4 @@ public:
private: private:
void SpectatorImpulseCommand( void ); void SpectatorImpulseCommand( void );
}; };
#endif // SPECTATOR_H

4
dlls/squad.h

@ -4,10 +4,11 @@
// //
// $NoKeywords: $ // $NoKeywords: $
//============================================================================= //=============================================================================
//========================================================= //=========================================================
// squad.h // squad.h
//========================================================= //=========================================================
#ifndef SQUAD_H
#define SQUAD_H
// these are special group roles that are assigned to members when the group is formed. // these are special group roles that are assigned to members when the group is formed.
// the reason these are explicitly assigned and tasks like throwing grenades to flush out // the reason these are explicitly assigned and tasks like throwing grenades to flush out
@ -19,3 +20,4 @@
#define bits_SQUAD_FLANK_RIGHT ( 1 << 1 ) #define bits_SQUAD_FLANK_RIGHT ( 1 << 1 )
#define bits_SQUAD_ADVANCE ( 1 << 2 ) #define bits_SQUAD_ADVANCE ( 1 << 2 )
#define bits_SQUAD_FLUSH_ATTACK ( 1 << 3 ) #define bits_SQUAD_FLUSH_ATTACK ( 1 << 3 )
#endif // SQUAD_H

3
dlls/squadmonster.h

@ -16,6 +16,8 @@
// CSquadMonster - all the extra data for monsters that // CSquadMonster - all the extra data for monsters that
// form squads. // form squads.
//========================================================= //=========================================================
#ifndef SQUADMONSTER_H
#define SQUADMONSTER_H
#define SF_SQUADMONSTER_LEADER 32 #define SF_SQUADMONSTER_LEADER 32
@ -116,3 +118,4 @@ public:
MONSTERSTATE GetIdealState( void ); MONSTERSTATE GetIdealState( void );
Schedule_t *GetScheduleOfType( int iType ); Schedule_t *GetScheduleOfType( int iType );
}; };
#endif // SQUADMONSTER_H

3
dlls/util.h

@ -12,6 +12,8 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#ifndef UTIL_H
#define UTIL_H
// //
// Misc utility code // Misc utility code
// //
@ -575,3 +577,4 @@ int UTIL_SharedRandomLong( unsigned int seed, int low, int high );
float UTIL_SharedRandomFloat( unsigned int seed, float low, float high ); float UTIL_SharedRandomFloat( unsigned int seed, float low, float high );
float UTIL_WeaponTimeBase( void ); float UTIL_WeaponTimeBase( void );
#endif // UTIL_H

Loading…
Cancel
Save