Fix gcc build errors & warnings

This commit is contained in:
Alexander 'z33ky' Hirsch 2021-11-07 22:53:28 +01:00
parent 8652b31ed1
commit e46dc3a2bd
3 changed files with 6 additions and 6 deletions

View File

@ -10,8 +10,8 @@
//#pragma warning(disable: 4786)
#include "convar.h"
#include "MaterialSystem/imaterialproxy.h"
#include "materialsystem/IMaterialVar.h"
#include "materialsystem/imaterialproxy.h"
#include "materialsystem/imaterialvar.h"
//#include "imaterialproxydict.h"
// NOTE: This has to be the last file included!

View File

@ -324,12 +324,12 @@ void CAI_GrenadeUser<BASE_NPC>::InputThrowGrenadeGestureAtTarget( inputdata_t &i
#ifdef SHARED_COMBINE_ACTIVITIES
if (IsAltFireCapable())
{
if (FVisible( m_hForcedGrenadeTarget ))
if (this->FVisible( m_hForcedGrenadeTarget ))
{
m_vecAltFireTarget = vecTarget;
m_hForcedGrenadeTarget = NULL;
int iLayer = AddGesture( ACT_GESTURE_COMBINE_AR2_ALTFIRE );
int iLayer = this->AddGesture( ACT_GESTURE_COMBINE_AR2_ALTFIRE );
if (iLayer != -1)
{
this->GetShotRegulator()->FireNoEarlierThan( gpGlobals->curtime + this->GetLayerDuration( iLayer ) );
@ -342,7 +342,7 @@ void CAI_GrenadeUser<BASE_NPC>::InputThrowGrenadeGestureAtTarget( inputdata_t &i
// Ignore grenade count / distance / etc
if (CheckCanThrowGrenade( vecTarget ))
{
int iLayer = AddGesture( ACT_GESTURE_COMBINE_THROW_GRENADE );
int iLayer = this->AddGesture( ACT_GESTURE_COMBINE_THROW_GRENADE );
if (iLayer != -1)
{
this->GetShotRegulator()->FireNoEarlierThan( gpGlobals->curtime + this->GetLayerDuration( iLayer ) );

View File

@ -44,7 +44,7 @@
#ifdef MAPBASE
#include "mapbase/GlobalStrings.h"
#include "collisionutils.h"
#include "vstdlib/ikeyvaluessystem.h" // From Alien Swarm SDK
#include "vstdlib/IKeyValuesSystem.h" // From Alien Swarm SDK
#endif
// memdbgon must be the last include file in a .cpp file!!!