Browse Source

#ifdef->#if.

bubblemod
Andrey Akhmichin 4 years ago
parent
commit
6327344ae2
  1. 10
      dlls/bubblemod/BMOD_egon.cpp
  2. 6
      dlls/bubblemod/egon.h

10
dlls/bubblemod/BMOD_egon.cpp

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

6
dlls/bubblemod/egon.h

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

Loading…
Cancel
Save