Skip to content

Commit cd2ee71

Browse files
committed
fix building
1 parent 36d4aa6 commit cd2ee71

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

AMBuilder

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,6 @@ for sdk_name in Extension.sdks:
505505
if builder.options.optimize_mods_only:
506506
binary.compiler.defines += ['OPTIMIZE_MODS_ONLY']
507507

508-
binary.sources += ['/fdf']
509-
510508
## build libstrcompat
511509
#if builder.target.platform == 'linux':
512510
# _, libstrcompat = builder.AddCommand(

src/common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ class IDedicatedExports;
135135

136136
class IMDLCache;
137137

138+
class IScriptManager;
139+
138140
namespace SourceMod {
139141
class IExtensionManager;
140142
}

src/extension.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
#endif
1919
#include "version.h"
2020
#include "convar_restore.h"
21+
#ifdef SE_IS_TF2
2122
#include "vscript/ivscript.h"
23+
#endif
2224
//#include "entity.h"
2325

2426
CExtSigsegv g_Ext;
@@ -236,9 +238,11 @@ bool CExtSigsegv::SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlength
236238
GET_IFACE_OPTIONAL(Engine, debugoverlay, VDEBUG_OVERLAY_INTERFACE_VERSION);
237239
GET_IFACE_OPTIONAL(Engine, enginetools, VENGINETOOL_INTERFACE_VERSION);
238240

241+
#ifdef VSCRIPT_INTERFACE_VERSION
239242
if (VScriptManagerFactory() != nullptr) {
240243
GET_IFACE_OPTIONAL(VScriptManager, scriptManager, VSCRIPT_INTERFACE_VERSION);
241244
}
245+
#endif
242246

243247
if (SoundEmitterSystemFactory() != nullptr) {
244248
GET_IFACE_OPTIONAL(SoundEmitterSystem, soundemitterbase, SOUNDEMITTERSYSTEM_INTERFACE_VERSION);

src/mod/perf/func_optimize.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,7 @@ namespace Mod::Perf::Func_Optimize
682682
DETOUR_MEMBER_CALL(whoFired, weapon);
683683
}
684684

685+
#ifdef SE_IS_TF2
685686
DETOUR_DECL_MEMBER(bool, CTFPlayer_WantsLagCompensationOnEntity, const CBasePlayer *target, const CUserCmd *pCmd, const CBitVec<MAX_EDICTS> *pEntityTransmitBits)
686687
{
687688
auto player = reinterpret_cast<CTFPlayer *>(this);
@@ -736,6 +737,7 @@ namespace Mod::Perf::Func_Optimize
736737
DETOUR_MEMBER_CALL();
737738
coneOfAttack = -1.0f;
738739
}
740+
#endif
739741

740742
class CMod : public IMod, public IModCallbackListener
741743
{

0 commit comments

Comments
 (0)