Add missing #include guards.

This commit is contained in:
Night Owl 2017-12-10 22:19:34 +05:00
parent 83c0505ffe
commit 41c9b072e5
11 changed files with 32 additions and 7 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,10 +4,11 @@
//
// $NoKeywords: $
//=============================================================================
//=========================================================
// squad.h
//=========================================================
#ifndef SQUAD_H
#define SQUAD_H
// 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
@ -19,3 +20,4 @@
#define bits_SQUAD_FLANK_RIGHT ( 1 << 1 )
#define bits_SQUAD_ADVANCE ( 1 << 2 )
#define bits_SQUAD_FLUSH_ATTACK ( 1 << 3 )
#endif // SQUAD_H

View File

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

View File

@ -12,6 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef UTIL_H
#define UTIL_H
//
// 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_WeaponTimeBase( void );
#endif // UTIL_H