Browse Source

Do not reorganize variables in classes. Add missing #pragma once directives and more #include guards.

asheep
Night Owl 7 years ago
parent
commit
f27d1028ac
  1. 4
      cl_dll/GameStudioModelRenderer.h
  2. 4
      cl_dll/GameStudioModelRenderer_Sample.h
  3. 4
      cl_dll/StudioModelRenderer.h
  4. 2
      cl_dll/ammo.h
  5. 1
      cl_dll/ammohistory.h
  6. 2
      cl_dll/camera.h
  7. 1
      cl_dll/cl_dll.h
  8. 4
      cl_dll/com_weapons.h
  9. 2
      cl_dll/demo.h
  10. 1
      cl_dll/ev_hldm.h
  11. 1
      cl_dll/eventscripts.h
  12. 1
      cl_dll/health.h
  13. 1
      cl_dll/hud.h
  14. 2
      cl_dll/hud_iface.h
  15. 2
      cl_dll/hud_spectator.h
  16. 2
      cl_dll/in_defs.h
  17. 1
      cl_dll/input_mouse.h
  18. 3
      cl_dll/kbutton.h
  19. 2
      cl_dll/overview.h
  20. 1
      cl_dll/parsemsg.h
  21. 4
      cl_dll/studio_util.h
  22. 4
      cl_dll/util_vector.h
  23. 2
      common/beamdef.h
  24. 2
      common/bspfile.h
  25. 2
      common/cl_entity.h
  26. 2
      common/com_model.h
  27. 1
      common/con_nprint.h
  28. 1
      common/const.h
  29. 1
      common/cvardef.h
  30. 2
      common/demo_api.h
  31. 2
      common/dlight.h
  32. 1
      common/entity_state.h
  33. 2
      common/entity_types.h
  34. 2
      common/event_api.h
  35. 1
      common/event_args.h
  36. 2
      common/event_flags.h
  37. 2
      common/gameinfo.h
  38. 2
      common/hltv.h
  39. 2
      common/ivoicetweak.h
  40. 2
      common/lightstyle.h
  41. 5
      common/mathlib.h
  42. 4
      common/net_api.h
  43. 2
      common/netadr.h
  44. 2
      common/particledef.h
  45. 2
      common/pmtrace.h
  46. 2
      common/qfont.h
  47. 2
      common/r_efx.h
  48. 3
      common/r_studioint.h
  49. 2
      common/ref_params.h
  50. 2
      common/render_api.h
  51. 2
      common/screenfade.h
  52. 2
      common/studio_event.h
  53. 2
      common/triangleapi.h
  54. 2
      common/usercmd.h
  55. 2
      common/wadfile.h
  56. 2
      common/weaponinfo.h
  57. 2
      common/wrect.h
  58. 2
      dlls/activity.h
  59. 5
      dlls/activitymap.h
  60. 1
      dlls/animation.h
  61. 2
      dlls/basemonster.h
  62. 1
      dlls/cbase.h
  63. 2
      dlls/cdll_dll.h
  64. 1
      dlls/client.h
  65. 1
      dlls/decals.h
  66. 1
      dlls/doors.h
  67. 4
      dlls/effects.cpp
  68. 1
      dlls/effects.h
  69. 3
      dlls/explode.h
  70. 1
      dlls/exportdef.h
  71. 1
      dlls/extdll.h
  72. 2
      dlls/flyingmonster.h
  73. 5
      dlls/func_break.h
  74. 6
      dlls/func_tank.cpp
  75. 2
      dlls/game.h
  76. 1
      dlls/gamerules.h
  77. 5
      dlls/hornet.h
  78. 1
      dlls/items.h
  79. 2
      dlls/lights.cpp
  80. 1
      dlls/monsters.h
  81. 1
      dlls/nodes.h
  82. 2
      dlls/physcallback.h
  83. 1
      dlls/player.h
  84. 1
      dlls/saverestore.h
  85. 2
      dlls/schedule.h
  86. 2
      dlls/scripted.cpp
  87. 1
      dlls/scripted.h
  88. 3
      dlls/scriptevent.h
  89. 1
      dlls/skill.h
  90. 4
      dlls/soundent.h
  91. 1
      dlls/spectator.h
  92. 1
      dlls/squad.h
  93. 1
      dlls/squadmonster.h
  94. 1
      dlls/talkmonster.h
  95. 4
      dlls/teamplay_gamerules.h
  96. 1
      dlls/trains.h
  97. 6
      dlls/triggers.cpp
  98. 1
      dlls/util.h
  99. 1
      dlls/vector.h
  100. 1
      dlls/weapons.h
  101. Some files were not shown because too many files have changed in this diff Show More

4
cl_dll/GameStudioModelRenderer.h

@ -5,11 +5,9 @@
// $NoKeywords: $ // $NoKeywords: $
//============================================================================= //=============================================================================
#pragma once
#if !defined( GAMESTUDIOMODELRENDERER_H ) #if !defined( GAMESTUDIOMODELRENDERER_H )
#define GAMESTUDIOMODELRENDERER_H #define GAMESTUDIOMODELRENDERER_H
#if defined( _WIN32 )
#pragma once
#endif
/* /*
==================== ====================

4
cl_dll/GameStudioModelRenderer_Sample.h

@ -5,11 +5,9 @@
// $NoKeywords: $ // $NoKeywords: $
//============================================================================= //=============================================================================
#pragma once
#if !defined( GAMESTUDIOMODELRENDERER_H ) #if !defined( GAMESTUDIOMODELRENDERER_H )
#define GAMESTUDIOMODELRENDERER_H #define GAMESTUDIOMODELRENDERER_H
#if defined( _WIN32 )
#pragma once
#endif
/* /*
==================== ====================

4
cl_dll/StudioModelRenderer.h

@ -5,11 +5,9 @@
// $NoKeywords: $ // $NoKeywords: $
//============================================================================= //=============================================================================
#pragma once
#if !defined ( STUDIOMODELRENDERER_H ) #if !defined ( STUDIOMODELRENDERER_H )
#define STUDIOMODELRENDERER_H #define STUDIOMODELRENDERER_H
#if defined( _WIN32 )
#pragma once
#endif
/* /*
==================== ====================

2
cl_dll/ammo.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef __AMMO_H__ #ifndef __AMMO_H__
#define __AMMO_H__ #define __AMMO_H__

1
cl_dll/ammohistory.h

@ -15,6 +15,7 @@
// //
// ammohistory.h // ammohistory.h
// //
#pragma once
#ifndef AMMOHISTORY_H #ifndef AMMOHISTORY_H
#define AMMOHISTORY_H #define AMMOHISTORY_H

2
cl_dll/camera.h

@ -7,7 +7,7 @@
// Camera.h -- defines and such for a 3rd person camera // Camera.h -- defines and such for a 3rd person camera
// NOTE: must include quakedef.h first // NOTE: must include quakedef.h first
#pragma once
#ifndef _CAMERA_H_ #ifndef _CAMERA_H_
#define _CAMERA_H_ #define _CAMERA_H_

1
cl_dll/cl_dll.h

@ -25,6 +25,7 @@
// - Drawing the HUD graphics every frame // - Drawing the HUD graphics every frame
// - Handling the custum HUD-update packets // - Handling the custum HUD-update packets
// //
#pragma once
#ifndef CL_DLL_H #ifndef CL_DLL_H
#define CL_DLL_H #define CL_DLL_H
typedef unsigned char byte; typedef unsigned char byte;

4
cl_dll/com_weapons.h

@ -7,11 +7,9 @@
// com_weapons.h // com_weapons.h
// Shared weapons common function prototypes // Shared weapons common function prototypes
#pragma once
#if !defined( COM_WEAPONSH ) #if !defined( COM_WEAPONSH )
#define COM_WEAPONSH #define COM_WEAPONSH
#ifdef _WIN32
#pragma once
#endif
#include "hud_iface.h" #include "hud_iface.h"

2
cl_dll/demo.h

@ -5,9 +5,9 @@
// $NoKeywords: $ // $NoKeywords: $
//============================================================================= //=============================================================================
#pragma once
#if !defined( DEMOH ) #if !defined( DEMOH )
#define DEMOH #define DEMOH
#pragma once
// Types of demo messages we can write/parse // Types of demo messages we can write/parse
enum enum

1
cl_dll/ev_hldm.h

@ -5,6 +5,7 @@
// $NoKeywords: $ // $NoKeywords: $
//============================================================================= //=============================================================================
#pragma once
#if !defined ( EV_HLDMH ) #if !defined ( EV_HLDMH )
#define EV_HLDMH #define EV_HLDMH

1
cl_dll/eventscripts.h

@ -6,6 +6,7 @@
//============================================================================= //=============================================================================
// eventscripts.h // eventscripts.h
#pragma once
#if !defined ( EVENTSCRIPTSH ) #if !defined ( EVENTSCRIPTSH )
#define EVENTSCRIPTSH #define EVENTSCRIPTSH

1
cl_dll/health.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef HEALTH_H #ifndef HEALTH_H
#define HEALTH_H #define HEALTH_H

1
cl_dll/hud.h

@ -19,6 +19,7 @@
// //
// CHud handles the message, calculation, and drawing the HUD // CHud handles the message, calculation, and drawing the HUD
// //
#pragma once
#ifndef HUD_H #ifndef HUD_H
#define HUD_H #define HUD_H
#define RGB_YELLOWISH 0x00FFA000 //255,160,0 #define RGB_YELLOWISH 0x00FFA000 //255,160,0

2
cl_dll/hud_iface.h

@ -5,9 +5,9 @@
// $NoKeywords: $ // $NoKeywords: $
//============================================================================= //=============================================================================
#pragma once
#if !defined( HUD_IFACEH ) #if !defined( HUD_IFACEH )
#define HUD_IFACEH #define HUD_IFACEH
#pragma once
#include "exportdef.h" #include "exportdef.h"

2
cl_dll/hud_spectator.h

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

2
cl_dll/in_defs.h

@ -5,9 +5,9 @@
// $NoKeywords: $ // $NoKeywords: $
//============================================================================= //=============================================================================
#pragma once
#if !defined( IN_DEFSH ) #if !defined( IN_DEFSH )
#define IN_DEFSH #define IN_DEFSH
#pragma once
// up / down // up / down
#define PITCH 0 #define PITCH 0

1
cl_dll/input_mouse.h

@ -1,3 +1,4 @@
#pragma once
#ifndef INPUT_MOUSE_H #ifndef INPUT_MOUSE_H
#define INPUT_MOUSE_H #define INPUT_MOUSE_H
#include "cl_dll.h" #include "cl_dll.h"

3
cl_dll/kbutton.h

@ -4,10 +4,9 @@
// //
// $NoKeywords: $ // $NoKeywords: $
//============================================================================= //=============================================================================
#pragma once
#if !defined( KBUTTONH ) #if !defined( KBUTTONH )
#define KBUTTONH #define KBUTTONH
#pragma once
typedef struct kbutton_s typedef struct kbutton_s
{ {

2
cl_dll/overview.h

@ -5,9 +5,9 @@
// $NoKeywords: $ // $NoKeywords: $
//============================================================================= //=============================================================================
#pragma once
#ifndef OVERVIEW_H #ifndef OVERVIEW_H
#define OVERVIEW_H #define OVERVIEW_H
#pragma once
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Purpose: Handles the drawing of the top-down map and all the things on it // Purpose: Handles the drawing of the top-down map and all the things on it

1
cl_dll/parsemsg.h

@ -15,6 +15,7 @@
// //
// parsemsg.h // parsemsg.h
// //
#pragma once
#ifndef PARSEMSG_H #ifndef PARSEMSG_H
#define PARSEMSG_H #define PARSEMSG_H

4
cl_dll/studio_util.h

@ -5,11 +5,9 @@
// $NoKeywords: $ // $NoKeywords: $
//============================================================================= //=============================================================================
#pragma once
#if !defined( STUDIO_UTIL_H ) #if !defined( STUDIO_UTIL_H )
#define STUDIO_UTIL_H #define STUDIO_UTIL_H
#if defined( WIN32 )
#pragma once
#endif
#ifndef M_PI #ifndef M_PI
#define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h #define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h

4
cl_dll/util_vector.h

@ -15,6 +15,9 @@
// Vector.h // Vector.h
// A subset of the extdll.h in the project HL Entity DLL // A subset of the extdll.h in the project HL Entity DLL
// //
#pragma once
#ifndef UTIL_VECTOR_H
#define UTIL_VECTOR_H
// Misc C-runtime library headers // Misc C-runtime library headers
#include "stdio.h" #include "stdio.h"
@ -124,3 +127,4 @@ inline float DotProduct( const Vector& a, const Vector& b) { return( a.x * b.x +
inline Vector CrossProduct(const Vector& a, const Vector& b) { return Vector( a.y * b.z - a.z * b.y, a.z * b.x - a.x * b.z, a.x * b.y - a.y * b.x ); } inline Vector CrossProduct(const Vector& a, const Vector& b) { return Vector( a.y * b.z - a.z * b.y, a.z * b.x - a.x * b.z, a.x * b.y - a.y * b.x ); }
#define vec3_t Vector #define vec3_t Vector
#endif // UTIL_VECTOR_H

2
common/beamdef.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef BEAMDEF_H #ifndef BEAMDEF_H
#define BEAMDEF_H #define BEAMDEF_H

2
common/bspfile.h

@ -12,7 +12,7 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
*/ */
#pragma once
#ifndef BSPFILE_H #ifndef BSPFILE_H
#define BSPFILE_H #define BSPFILE_H

2
common/cl_entity.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef CL_ENTITY_H #ifndef CL_ENTITY_H
#define CL_ENTITY_H #define CL_ENTITY_H

2
common/com_model.h

@ -12,7 +12,7 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
*/ */
#pragma once
#ifndef COM_MODEL_H #ifndef COM_MODEL_H
#define COM_MODEL_H #define COM_MODEL_H

1
common/con_nprint.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef CON_NPRINT_H #ifndef CON_NPRINT_H
#define CON_NPRINT_H #define CON_NPRINT_H

1
common/const.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef CONST_H #ifndef CONST_H
#define CONST_H #define CONST_H
// //

1
common/cvardef.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef CVARDEF_H #ifndef CVARDEF_H
#define CVARDEF_H #define CVARDEF_H

2
common/demo_api.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef DEMO_API_H #ifndef DEMO_API_H
#define DEMO_API_H #define DEMO_API_H

2
common/dlight.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef DLIGHT_H #ifndef DLIGHT_H
#define DLIGHT_H #define DLIGHT_H

1
common/entity_state.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef ENTITY_STATE_H #ifndef ENTITY_STATE_H
#define ENTITY_STATE_H #define ENTITY_STATE_H

2
common/entity_types.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef ENTITY_TYPES_H #ifndef ENTITY_TYPES_H
#define ENTITY_TYPES_H #define ENTITY_TYPES_H

2
common/event_api.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef EVENT_API_H #ifndef EVENT_API_H
#define EVENT_API_H #define EVENT_API_H

1
common/event_args.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef EVENT_ARGS_H #ifndef EVENT_ARGS_H
#define EVENT_ARGS_H #define EVENT_ARGS_H

2
common/event_flags.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef EVENT_FLAGS_H #ifndef EVENT_FLAGS_H
#define EVENT_FLAGS_H #define EVENT_FLAGS_H

2
common/gameinfo.h

@ -12,7 +12,7 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
*/ */
#pragma once
#ifndef GAMEINFO_H #ifndef GAMEINFO_H
#define GAMEINFO_H #define GAMEINFO_H

2
common/hltv.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef HLTV_H #ifndef HLTV_H
#define HLTV_H #define HLTV_H

2
common/ivoicetweak.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef IVOICETWEAK_H #ifndef IVOICETWEAK_H
#define IVOICETWEAK_H #define IVOICETWEAK_H

2
common/lightstyle.h

@ -12,7 +12,7 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
*/ */
#pragma once
#ifndef LIGHTSTYLE_H #ifndef LIGHTSTYLE_H
#define LIGHTSTYLE_H #define LIGHTSTYLE_H

5
common/mathlib.h

@ -13,7 +13,9 @@
* *
****/ ****/
// mathlib.h // mathlib.h
#pragma once
#ifndef MATHLIB_H
#define MATHLIB_H
#include <math.h> #include <math.h>
typedef float vec_t; typedef float vec_t;
@ -98,3 +100,4 @@ float anglemod(float a);
) \ ) \
: \ : \
BoxOnPlaneSide( (emins), (emaxs), (p))) BoxOnPlaneSide( (emins), (emaxs), (p)))
#endif // MATHLIB_H

4
common/net_api.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef NET_API_H #ifndef NET_API_H
#define NET_API_H #define NET_API_H
@ -94,4 +94,4 @@ typedef struct net_api_s
void (*SetValueForKey)( char *s, const char *key, const char *value, int maxsize ); void (*SetValueForKey)( char *s, const char *key, const char *value, int maxsize );
} net_api_t; } net_api_t;
#endif//NET_APIH #endif // NET_APIH

2
common/netadr.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef NETADR_H #ifndef NETADR_H
#define NETADR_H #define NETADR_H

2
common/particledef.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef PARTICLEDEF_H #ifndef PARTICLEDEF_H
#define PARTICLEDEF_H #define PARTICLEDEF_H

2
common/pmtrace.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef PM_TRACE_H #ifndef PM_TRACE_H
#define PM_TRACE_H #define PM_TRACE_H

2
common/qfont.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef QFONT_H #ifndef QFONT_H
#define QFONT_H #define QFONT_H

2
common/r_efx.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef R_EFX_H #ifndef R_EFX_H
#define R_EFX_H #define R_EFX_H

3
common/r_studioint.h

@ -12,8 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef R_STUDIOINT_H #ifndef R_STUDIOINT_H
#define R_STUDIOINT_H #define R_STUDIOINT_H

2
common/ref_params.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef REF_PARAMS_H #ifndef REF_PARAMS_H
#define REF_PARAMS_H #define REF_PARAMS_H

2
common/render_api.h

@ -12,7 +12,7 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
*/ */
#pragma once
#ifndef RENDER_API_H #ifndef RENDER_API_H
#define RENDER_API_H #define RENDER_API_H

2
common/screenfade.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef SCREENFADE_H #ifndef SCREENFADE_H
#define SCREENFADE_H #define SCREENFADE_H

2
common/studio_event.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef STUDIO_EVENT_H #ifndef STUDIO_EVENT_H
#define STUDIO_EVENT_H #define STUDIO_EVENT_H

2
common/triangleapi.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef TRIANGLEAPI_H #ifndef TRIANGLEAPI_H
#define TRIANGLEAPI_H #define TRIANGLEAPI_H

2
common/usercmd.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef USERCMD_H #ifndef USERCMD_H
#define USERCMD_H #define USERCMD_H

2
common/wadfile.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef WADFILE_H #ifndef WADFILE_H
#define WADFILE_H #define WADFILE_H

2
common/weaponinfo.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef WEAPONINFO_H #ifndef WEAPONINFO_H
#define WEAPONINFO_H #define WEAPONINFO_H

2
common/wrect.h

@ -12,7 +12,7 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
*/ */
#pragma once
#ifndef WRECT_H #ifndef WRECT_H
#define WRECT_H #define WRECT_H

2
dlls/activity.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef ACTIVITY_H #ifndef ACTIVITY_H
#define ACTIVITY_H #define ACTIVITY_H

5
dlls/activitymap.h

@ -12,7 +12,9 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef ACTIVITYMAP_H
#define ACTIVITYMAP_H
#define _A( a ) { a, #a } #define _A( a ) { a, #a }
activity_map_t activity_map[] = activity_map_t activity_map[] =
@ -95,3 +97,4 @@ _A( ACT_FLINCH_LEFTLEG ),
_A( ACT_FLINCH_RIGHTLEG ), _A( ACT_FLINCH_RIGHTLEG ),
{ 0, NULL } { 0, NULL }
}; };
#endif // ACTIVITYMAP_H

1
dlls/animation.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef ANIMATION_H #ifndef ANIMATION_H
#define ANIMATION_H #define ANIMATION_H

2
dlls/basemonster.h

@ -12,7 +12,7 @@
* use or distribution of this code by or to any unlicensed person is illegal. * use or distribution of this code by or to any unlicensed person is illegal.
* *
****/ ****/
#pragma once
#ifndef BASEMONSTER_H #ifndef BASEMONSTER_H
#define BASEMONSTER_H #define BASEMONSTER_H

1
dlls/cbase.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef CBASE_H #ifndef CBASE_H
#define CBASE_H #define CBASE_H
/* /*

2
dlls/cdll_dll.h

@ -16,7 +16,7 @@
// cdll_dll.h // cdll_dll.h
// this file is included by both the game-dll and the client-dll, // this file is included by both the game-dll and the client-dll,
#pragma once
#ifndef CDLL_DLL_H #ifndef CDLL_DLL_H
#define CDLL_DLL_H #define CDLL_DLL_H

1
dlls/client.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef CLIENT_H #ifndef CLIENT_H
#define CLIENT_H #define CLIENT_H

1
dlls/decals.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef DECALS_H #ifndef DECALS_H
#define DECALS_H #define DECALS_H

1
dlls/doors.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef DOORS_H #ifndef DOORS_H
#define DOORS_H #define DOORS_H

4
dlls/effects.cpp

@ -379,10 +379,9 @@ public:
void BeamUpdateVars( void ); void BeamUpdateVars( void );
int m_active;
string_t m_iszStartEntity; string_t m_iszStartEntity;
string_t m_iszEndEntity; string_t m_iszEndEntity;
string_t m_iszSpriteName;
int m_active;
float m_life; float m_life;
int m_boltWidth; int m_boltWidth;
int m_noiseAmplitude; int m_noiseAmplitude;
@ -390,6 +389,7 @@ public:
int m_speed; int m_speed;
float m_restrike; float m_restrike;
int m_spriteTexture; int m_spriteTexture;
string_t m_iszSpriteName;
int m_frameStart; int m_frameStart;
float m_radius; float m_radius;

1
dlls/effects.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef EFFECTS_H #ifndef EFFECTS_H
#define EFFECTS_H #define EFFECTS_H

3
dlls/explode.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef EXPLODE_H #ifndef EXPLODE_H
#define EXPLODE_H #define EXPLODE_H
@ -26,4 +27,4 @@ extern DLL_GLOBAL short g_sModelIndexFireball;
extern DLL_GLOBAL short g_sModelIndexSmoke; extern DLL_GLOBAL short g_sModelIndexSmoke;
extern void ExplosionCreate( const Vector &center, const Vector &angles, edict_t *pOwner, int magnitude, BOOL doDamage ); extern void ExplosionCreate( const Vector &center, const Vector &angles, edict_t *pOwner, int magnitude, BOOL doDamage );
#endif //EXPLODE_H #endif // EXPLODE_H

1
dlls/exportdef.h

@ -1,3 +1,4 @@
#pragma once
#ifndef EXPORTDEF_H #ifndef EXPORTDEF_H
#define EXPORTDEF_H #define EXPORTDEF_H
#if defined _WIN32 || defined __CYGWIN__ #if defined _WIN32 || defined __CYGWIN__

1
dlls/extdll.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef EXTDLL_H #ifndef EXTDLL_H
#define EXTDLL_H #define EXTDLL_H

2
dlls/flyingmonster.h

@ -13,7 +13,7 @@
* *
****/ ****/
// Base class for flying monsters. This overrides the movement test & execution code from CBaseMonster // Base class for flying monsters. This overrides the movement test & execution code from CBaseMonster
#pragma once
#ifndef FLYINGMONSTER_H #ifndef FLYINGMONSTER_H
#define FLYINGMONSTER_H #define FLYINGMONSTER_H

5
dlls/func_break.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef FUNC_BREAK_H #ifndef FUNC_BREAK_H
#define FUNC_BREAK_H #define FUNC_BREAK_H
@ -82,9 +83,9 @@ public:
Materials m_Material; Materials m_Material;
Explosions m_Explosion; Explosions m_Explosion;
string_t m_iszGibModel;
string_t m_iszSpawnObject;
int m_idShard; int m_idShard;
float m_angle; float m_angle;
string_t m_iszGibModel;
string_t m_iszSpawnObject;
}; };
#endif // FUNC_BREAK_H #endif // FUNC_BREAK_H

6
dlls/func_tank.cpp

@ -97,9 +97,6 @@ public:
protected: protected:
CBasePlayer* m_pController; CBasePlayer* m_pController;
string_t m_iszSpriteSmoke;
string_t m_iszSpriteFlash;
string_t m_iszMaster; // Master entity (game_team_master or multisource)
float m_flNextAttack; float m_flNextAttack;
Vector m_vecControllerUsePos; Vector m_vecControllerUsePos;
@ -123,11 +120,14 @@ protected:
Vector m_barrelPos; // Length of the freakin barrel Vector m_barrelPos; // Length of the freakin barrel
float m_spriteScale; // Scale of any sprites we shoot float m_spriteScale; // Scale of any sprites we shoot
string_t m_iszSpriteSmoke;
string_t m_iszSpriteFlash;
TANKBULLET m_bulletType; // Bullet type TANKBULLET m_bulletType; // Bullet type
int m_iBulletDamage; // 0 means use Bullet type's default damage int m_iBulletDamage; // 0 means use Bullet type's default damage
Vector m_sightOrigin; // Last sight of target Vector m_sightOrigin; // Last sight of target
int m_spread; // firing spread int m_spread; // firing spread
string_t m_iszMaster; // Master entity (game_team_master or multisource)
}; };
TYPEDESCRIPTION CFuncTank::m_SaveData[] = TYPEDESCRIPTION CFuncTank::m_SaveData[] =

2
dlls/game.h

@ -12,7 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef GAME_H #ifndef GAME_H
#define GAME_H #define GAME_H

1
dlls/gamerules.h

@ -15,6 +15,7 @@
//========================================================= //=========================================================
// GameRules // GameRules
//========================================================= //=========================================================
#pragma once
#ifndef GAMERULES_H #ifndef GAMERULES_H
#define GAMERULES_H #define GAMERULES_H
//#include "weapons.h" //#include "weapons.h"

5
dlls/hornet.h

@ -15,7 +15,9 @@
//========================================================= //=========================================================
// Hornets // Hornets
//========================================================= //=========================================================
#pragma once
#ifndef HORNET_H
#define HORNET_H
//========================================================= //=========================================================
// Hornet Defines // Hornet Defines
//========================================================= //=========================================================
@ -55,3 +57,4 @@ public:
int m_iHornetType; int m_iHornetType;
float m_flFlySpeed; float m_flFlySpeed;
}; };
#endif // HORNET_H

1
dlls/items.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef ITEMS_H #ifndef ITEMS_H
#define ITEMS_H #define ITEMS_H

2
dlls/lights.cpp

@ -37,8 +37,8 @@ public:
static TYPEDESCRIPTION m_SaveData[]; static TYPEDESCRIPTION m_SaveData[];
private: private:
string_t m_iszPattern;
int m_iStyle; int m_iStyle;
string_t m_iszPattern;
}; };
LINK_ENTITY_TO_CLASS( light, CLight ) LINK_ENTITY_TO_CLASS( light, CLight )

1
dlls/monsters.h

@ -12,6 +12,7 @@
* use or distribution of this code by or to any unlicensed person is illegal. * use or distribution of this code by or to any unlicensed person is illegal.
* *
****/ ****/
#pragma once
#ifndef MONSTERS_H #ifndef MONSTERS_H
#include "skill.h" #include "skill.h"
#define MONSTERS_H #define MONSTERS_H

1
dlls/nodes.h

@ -15,6 +15,7 @@
//========================================================= //=========================================================
// nodes.h // nodes.h
//========================================================= //=========================================================
#pragma once
#ifndef NODES_H #ifndef NODES_H
#define NODES_H #define NODES_H
//========================================================= //=========================================================

2
dlls/physcallback.h

@ -12,9 +12,9 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef PHYSCALLBACK_H #ifndef PHYSCALLBACK_H
#define PHYSCALLBACK_H #define PHYSCALLBACK_H
#pragma once
#include "physint.h" #include "physint.h"

1
dlls/player.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef PLAYER_H #ifndef PLAYER_H
#define PLAYER_H #define PLAYER_H

1
dlls/saverestore.h

@ -13,6 +13,7 @@
* *
****/ ****/
// Implementation in UTIL.CPP // Implementation in UTIL.CPP
#pragma once
#ifndef SAVERESTORE_H #ifndef SAVERESTORE_H
#define SAVERESTORE_H #define SAVERESTORE_H

2
dlls/schedule.h

@ -15,7 +15,7 @@
//========================================================= //=========================================================
// Scheduling // Scheduling
//========================================================= //=========================================================
#pragma once
#ifndef SCHEDULE_H #ifndef SCHEDULE_H
#define SCHEDULE_H #define SCHEDULE_H

2
dlls/scripted.cpp

@ -909,13 +909,13 @@ public:
private: private:
string_t m_iszSentence; // string index for idle animation string_t m_iszSentence; // string index for idle animation
string_t m_iszEntity; // entity that is wanted for this sentence string_t m_iszEntity; // entity that is wanted for this sentence
string_t m_iszListener; // name of entity to look at while talking
float m_flRadius; // range to search float m_flRadius; // range to search
float m_flDuration; // How long the sentence lasts float m_flDuration; // How long the sentence lasts
float m_flRepeat; // repeat rate float m_flRepeat; // repeat rate
float m_flAttenuation; float m_flAttenuation;
float m_flVolume; float m_flVolume;
BOOL m_active; BOOL m_active;
string_t m_iszListener; // name of entity to look at while talking
}; };
#define SF_SENTENCE_ONCE 0x0001 #define SF_SENTENCE_ONCE 0x0001

1
dlls/scripted.h

@ -12,6 +12,7 @@
* use or distribution of this code by or to any unlicensed person is illegal. * use or distribution of this code by or to any unlicensed person is illegal.
* *
****/ ****/
#pragma once
#ifndef SCRIPTED_H #ifndef SCRIPTED_H
#define SCRIPTED_H #define SCRIPTED_H

3
dlls/scriptevent.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef SCRIPTEVENT_H #ifndef SCRIPTEVENT_H
#define SCRIPTEVENT_H #define SCRIPTEVENT_H
@ -26,4 +27,4 @@
#define SCRIPT_EVENT_SOUND_VOICE 1008 // Play named wave file (on CHAN_VOICE) #define SCRIPT_EVENT_SOUND_VOICE 1008 // Play named wave file (on CHAN_VOICE)
#define SCRIPT_EVENT_SENTENCE_RND1 1009 // Play sentence group 25% of the time #define SCRIPT_EVENT_SENTENCE_RND1 1009 // Play sentence group 25% of the time
#define SCRIPT_EVENT_NOT_DEAD 1010 // Bring back to life (for life/death sequences) #define SCRIPT_EVENT_NOT_DEAD 1010 // Bring back to life (for life/death sequences)
#endif //SCRIPTEVENT_H #endif // SCRIPTEVENT_H

1
dlls/skill.h

@ -15,6 +15,7 @@
//========================================================= //=========================================================
// skill.h - skill level concerns // skill.h - skill level concerns
//========================================================= //=========================================================
#pragma once
#ifndef SKILL_H #ifndef SKILL_H
#define SKILL_H #define SKILL_H

4
dlls/soundent.h

@ -17,6 +17,9 @@
// spawns, and handles the world's active and free sound // spawns, and handles the world's active and free sound
// lists. // lists.
//========================================================= //=========================================================
#pragma once
#ifndef SOUNDENT_H
#define SOUNDENT_H
#define MAX_WORLD_SOUNDS 64 // maximum number of sounds handled by the world at one time. #define MAX_WORLD_SOUNDS 64 // maximum number of sounds handled by the world at one time.
@ -91,3 +94,4 @@ public:
private: private:
CSound m_SoundPool[ MAX_WORLD_SOUNDS ]; CSound m_SoundPool[ MAX_WORLD_SOUNDS ];
}; };
#endif // SOUNDENT_H

1
dlls/spectator.h

@ -13,6 +13,7 @@
* *
****/ ****/
// Spectator.h // Spectator.h
#pragma once
#ifndef SPECTATOR_H #ifndef SPECTATOR_H
#define SPECTATOR_H #define SPECTATOR_H

1
dlls/squad.h

@ -7,6 +7,7 @@
//========================================================= //=========================================================
// squad.h // squad.h
//========================================================= //=========================================================
#pragma once
#ifndef SQUAD_H #ifndef SQUAD_H
#define SQUAD_H #define SQUAD_H

1
dlls/squadmonster.h

@ -16,6 +16,7 @@
// CSquadMonster - all the extra data for monsters that // CSquadMonster - all the extra data for monsters that
// form squads. // form squads.
//========================================================= //=========================================================
#pragma once
#ifndef SQUADMONSTER_H #ifndef SQUADMONSTER_H
#define SQUADMONSTER_H #define SQUADMONSTER_H

1
dlls/talkmonster.h

@ -12,6 +12,7 @@
* use or distribution of this code by or to any unlicensed person is illegal. * use or distribution of this code by or to any unlicensed person is illegal.
* *
****/ ****/
#pragma once
#ifndef TALKMONSTER_H #ifndef TALKMONSTER_H
#define TALKMONSTER_H #define TALKMONSTER_H

4
dlls/teamplay_gamerules.h

@ -15,6 +15,9 @@
// //
// teamplay_gamerules.h // teamplay_gamerules.h
// //
#pragma once
#ifndef TEAMPLAY_GAMERULES_H
#define TEAMPLAY_GAMERULES_H
#define MAX_TEAMNAME_LENGTH 16 #define MAX_TEAMNAME_LENGTH 16
#define MAX_TEAMS 32 #define MAX_TEAMS 32
@ -55,3 +58,4 @@ private:
BOOL m_teamLimit; // This means the server set only some teams as valid BOOL m_teamLimit; // This means the server set only some teams as valid
char m_szTeamList[TEAMPLAY_TEAMLISTLENGTH]; char m_szTeamList[TEAMPLAY_TEAMLISTLENGTH];
}; };
#endif // TEAMPLAY_GAMERULES_H

1
dlls/trains.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef TRAINS_H #ifndef TRAINS_H
#define TRAINS_H #define TRAINS_H

6
dlls/triggers.cpp

@ -267,11 +267,11 @@ public:
static TYPEDESCRIPTION m_SaveData[]; static TYPEDESCRIPTION m_SaveData[];
string_t m_iTargetName[MAX_MULTI_TARGETS];// list if indexes into global string array
float m_flTargetDelay[MAX_MULTI_TARGETS];// delay (in seconds) from time of manager fire to target fire
int m_cTargets; // the total number of targets in this manager's fire list. int m_cTargets; // the total number of targets in this manager's fire list.
int m_index; // Current target int m_index; // Current target
float m_startTime;// Time we started firing float m_startTime;// Time we started firing
string_t m_iTargetName[MAX_MULTI_TARGETS];// list if indexes into global string array
float m_flTargetDelay[MAX_MULTI_TARGETS];// delay (in seconds) from time of manager fire to target fire
private: private:
inline BOOL IsClone( void ) { return ( pev->spawnflags & SF_MULTIMAN_CLONE ) ? TRUE : FALSE; } inline BOOL IsClone( void ) { return ( pev->spawnflags & SF_MULTIMAN_CLONE ) ? TRUE : FALSE; }
inline BOOL ShouldClone( void ) inline BOOL ShouldClone( void )
@ -1321,9 +1321,9 @@ public:
static TYPEDESCRIPTION m_SaveData[]; static TYPEDESCRIPTION m_SaveData[];
string_t m_changeTarget;
char m_szMapName[cchMapNameMost]; // trigger_changelevel only: next map char m_szMapName[cchMapNameMost]; // trigger_changelevel only: next map
char m_szLandmarkName[cchMapNameMost]; // trigger_changelevel only: landmark on next map char m_szLandmarkName[cchMapNameMost]; // trigger_changelevel only: landmark on next map
string_t m_changeTarget;
float m_changeTargetDelay; float m_changeTargetDelay;
}; };

1
dlls/util.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef UTIL_H #ifndef UTIL_H
#define UTIL_H #define UTIL_H
// //

1
dlls/vector.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef VECTOR_H #ifndef VECTOR_H
#define VECTOR_H #define VECTOR_H

1
dlls/weapons.h

@ -12,6 +12,7 @@
* without written permission from Valve LLC. * without written permission from Valve LLC.
* *
****/ ****/
#pragma once
#ifndef WEAPONS_H #ifndef WEAPONS_H
#define WEAPONS_H #define WEAPONS_H

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save