diff --git a/dlls/Wxdebug.cpp b/dlls/Wxdebug.cpp index 26d0d381..e04a027e 100644 --- a/dlls/Wxdebug.cpp +++ b/dlls/Wxdebug.cpp @@ -22,6 +22,8 @@ // the module specific types and m_dwLevel is set to the greater of the global // and the module specific settings. +#if defined(_DEBUG) && defined(_WIN32) + #include #include @@ -31,7 +33,6 @@ #include -#ifdef _DEBUG void WINAPI DbgInitModuleName(void); void WINAPI DbgInitModuleSettings(void); diff --git a/dlls/ar2.cpp b/dlls/ar2.cpp index 8c734876..dbd02fe5 100644 --- a/dlls/ar2.cpp +++ b/dlls/ar2.cpp @@ -17,7 +17,6 @@ #include "game.h" #define AR2_BEAM_SPRITE "sprites/xbeam1.spr" -#define WEAPON_AR2 19 enum AR2_e { AR2_LONGIDLE = 0, @@ -524,21 +523,7 @@ void CAR2::PrimaryAttack() vecDir = m_pPlayer->FireBulletsPlayer(5, vecSrc, vecAiming, VECTOR_CONE_3DEGREES, 8192, BULLET_PLAYER_MP5, 0, 3, m_pPlayer->pev, m_pPlayer->random_seed); - int iAnim; - switch (RANDOM_LONG(0, 2)) - { - case 0: - iAnim = AR2_FIRE1; - break; - - default: - case 1: - iAnim = AR2_FIRE2; - break; - case 2: - iAnim = AR2_FIRE3; - break; - } + int iAnim = RANDOM_LONG( AR2_FIRE1, AR2_FIRE3 ); MyAnim(iAnim); if( !m_pBeam1 ) diff --git a/dlls/big_cock.cpp b/dlls/big_cock.cpp index 50a4edd2..cc226d81 100644 --- a/dlls/big_cock.cpp +++ b/dlls/big_cock.cpp @@ -13,7 +13,6 @@ #include "nodes.h" #include "player.h" -#define WEAPON_BIG_COCK 18 #define BIG_COCK_WEIGHT 21 diff --git a/dlls/effects.cpp b/dlls/effects.cpp index 32113ae6..d076f551 100644 --- a/dlls/effects.cpp +++ b/dlls/effects.cpp @@ -1268,7 +1268,7 @@ void CSprite::TurnOn( void ) pev->effects = 0; if( ( pev->framerate && m_maxFrame > 1.0 ) || ( pev->spawnflags & SF_SPRITE_ONCE ) ) { - SetThink( &CSprite::CSprite::AnimateThink ); + SetThink( &CSprite::AnimateThink ); pev->nextthink = gpGlobals->time; m_lastTime = gpGlobals->time; } diff --git a/dlls/gravgun.cpp b/dlls/gravgun.cpp index 0afd9c32..022b8b31 100644 --- a/dlls/gravgun.cpp +++ b/dlls/gravgun.cpp @@ -24,7 +24,6 @@ Created by Solexid #define GRAV_SOUND_RUN "weapons/mine_activate.wav" #define GRAV_SOUND_FAILRUN "houndeye/he_die3.wav" #define GRAV_SOUND_STARTUP "weapons/gauss2.wav" -#define WEAPON_GRAVGUN 17 #define EGON_SWITCH_NARROW_TIME 0.75 // Time it takes to switch fire modes enum gauss_e { diff --git a/dlls/mpstubb.cpp b/dlls/mpstubb.cpp index 3cc2e5c2..703a4dba 100644 --- a/dlls/mpstubb.cpp +++ b/dlls/mpstubb.cpp @@ -74,7 +74,7 @@ void CBaseMonster::MonsterInitDead( void ) // Setup health counters, etc. BecomeDead(); - SetThink( &CorpseFallThink ); + SetThink( &CBaseMonster::CorpseFallThink ); pev->nextthink = gpGlobals->time + 0.5; } diff --git a/dlls/stats.cpp b/dlls/stats.cpp index 038e1667..9b21f792 100644 --- a/dlls/stats.cpp +++ b/dlls/stats.cpp @@ -15,7 +15,7 @@ #include "weapons.h" #include "soundent.h" #include "monsters.h" -#include "..\engine\shake.h" +#include "../engine/shake.h" #include "decals.h" #include "gamerules.h" diff --git a/dlls/weapons.cpp b/dlls/weapons.cpp index 09a3bbc4..91428812 100644 --- a/dlls/weapons.cpp +++ b/dlls/weapons.cpp @@ -354,6 +354,7 @@ void W_Precache( void ) UTIL_PrecacheOtherWeapon( "weapon_gravgun" ); UTIL_PrecacheOtherWeapon( "weapon_ar2" ); UTIL_PrecacheOtherWeapon( "weapon_big_cock" ); + UTIL_PrecacheOtherWeapon( "weapon_gateofbabylon" ); #if !defined( OEM_BUILD ) && !defined( HLDEMO_BUILD ) diff --git a/dlls/weapons.h b/dlls/weapons.h index 223fd79a..a7dd8b30 100644 --- a/dlls/weapons.h +++ b/dlls/weapons.h @@ -82,7 +82,10 @@ public: #define WEAPON_TRIPMINE 13 #define WEAPON_SATCHEL 14 #define WEAPON_SNARK 15 - +#define WEAPON_GRAVGUN 17 +#define WEAPON_BIG_COCK 18 +#define WEAPON_AR2 19 +#define WEAPON_GATEOFBABYLON 20 #define WEAPON_ALLWEAPONS (~(1<