#ifdef->#if.

This commit is contained in:
Andrey Akhmichin 2021-06-17 06:20:01 +05:00
parent fb94d40dea
commit 6327344ae2
2 changed files with 8 additions and 10 deletions

View File

@ -12,7 +12,7 @@
* without written permission from Valve LLC.
*
****/
#if !defined( OEM_BUILD ) && !defined( HLDEMO_BUILD )
#if !OEM_BUILD && !HLDEMO_BUILD
#include "extdll.h"
#include "util.h"
@ -701,7 +701,7 @@ void CEgon::Attack( void )
Vector vecSrc = m_pPlayer->GetGunPosition( );
int flags;
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
flags = FEV_NOTHOST;
#else
flags = 0;
@ -788,7 +788,7 @@ void CEgon::Fire( const Vector &vecOrigSrc, const Vector &vecDir )
if (tr.fAllSolid)
return;
#ifndef CLIENT_DLL
#if !CLIENT_DLL
CBaseEntity *pEntity = CBaseEntity::Instance(tr.pHit);
if (pEntity == NULL)
@ -814,7 +814,7 @@ void CEgon::Fire( const Vector &vecOrigSrc, const Vector &vecDir )
switch ( m_fireMode )
{
case FIRE_NARROW:
#ifndef CLIENT_DLL
#if !CLIENT_DLL
if ( pev->dmgtime < gpGlobals->time )
{
// Narrow mode only does damage to the entity it hits
@ -851,7 +851,7 @@ void CEgon::Fire( const Vector &vecOrigSrc, const Vector &vecDir )
break;
case FIRE_WIDE:
#ifndef CLIENT_DLL
#if !CLIENT_DLL
if ( pev->dmgtime < gpGlobals->time )
{
// wide mode does damage to the ent, and radius damage

View File

@ -1,5 +1,3 @@
#ifndef EGON_H
#define EGON_H
@ -15,7 +13,7 @@ extern cvar_t bm_gluon_mod;
class CEgon : public CBasePlayerWeapon
{
public:
#ifndef CLIENT_DLL
#if !CLIENT_DLL
int Save( CSave &save );
int Restore( CRestore &restore );
static TYPEDESCRIPTION m_SaveData[];
@ -59,7 +57,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;
@ -88,4 +86,4 @@ private:
unsigned short m_usEgonFire;
};
#endif
#endif