Skip to content

Commit 05ad2dd

Browse files
committed
Fixed compiler errors due to last updates from master
1 parent 71cffca commit 05ad2dd

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

src/core/modules/entities/sdk2013/entities_constants_wrap.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ void export_engine_specific_entity_effects(T _constants)
6363
}
6464

6565

66+
//-----------------------------------------------------------------------------
67+
// Exports RenderMode_t.
68+
//-----------------------------------------------------------------------------
69+
template<class T, class U>
70+
void export_engine_specific_render_mode(T _constants, U RenderEffects)
71+
{
72+
// Nothing specific to SDK2013...
73+
}
74+
75+
6676
//-----------------------------------------------------------------------------
6777
// Exports RenderFx_t.
6878
//-----------------------------------------------------------------------------

src/core/sp_main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ bool GetInterfaces( InterfaceHelper_t* pInterfaceList, CreateInterfaceFn factory
182182
//-----------------------------------------------------------------------------
183183
// Server output hook.
184184
//-----------------------------------------------------------------------------
185-
#if defined(ENGINE_ORANGEBOX) || defined(ENGINE_BMS) || defined(ENGINE_GMOD)
185+
#if defined(ENGINE_ORANGEBOX) || defined(ENGINE_BMS) || defined(ENGINE_GMOD) || defined(ENGINE_SDK2013)
186186
SpewRetval_t SP_SpewOutput( SpewType_t spewType, const tchar *pMsg )
187187
{
188188
extern CListenerManager* GetOnServerOutputListenerManager();
@@ -264,7 +264,7 @@ CSourcePython::CSourcePython()
264264
m_iClientCommandIndex = 0;
265265
m_pOldMDLCacheNotifier = NULL;
266266

267-
#if defined(ENGINE_ORANGEBOX) || defined(ENGINE_BMS) || defined(ENGINE_GMOD)
267+
#if defined(ENGINE_ORANGEBOX) || defined(ENGINE_BMS) || defined(ENGINE_GMOD) || defined(ENGINE_SDK2013)
268268
m_pOldSpewOutputFunc = NULL;
269269
#endif
270270
}
@@ -321,7 +321,7 @@ bool CSourcePython::Load( CreateInterfaceFn interfaceFactory, CreateInterfaceFn
321321
return false;
322322
}
323323

324-
#if defined(ENGINE_ORANGEBOX) || defined(ENGINE_BMS) || defined(ENGINE_GMOD)
324+
#if defined(ENGINE_ORANGEBOX) || defined(ENGINE_BMS) || defined(ENGINE_GMOD) || defined(ENGINE_SDK2013)
325325
DevMsg(1, MSG_PREFIX "Retrieving old output function...\n");
326326
m_pOldSpewOutputFunc = GetSpewOutputFunc();
327327

@@ -364,7 +364,7 @@ void CSourcePython::Unload( void )
364364
DevMsg(1, MSG_PREFIX "Unhooking all functions...\n");
365365
GetHookManager()->UnhookAllFunctions();
366366

367-
#if defined(ENGINE_ORANGEBOX) || defined(ENGINE_BMS) || defined(ENGINE_GMOD)
367+
#if defined(ENGINE_ORANGEBOX) || defined(ENGINE_BMS) || defined(ENGINE_GMOD) || defined(ENGINE_SDK2013)
368368
if (m_pOldSpewOutputFunc)
369369
{
370370
DevMsg(1, MSG_PREFIX "Restoring old output function...\n");

src/core/sp_main.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class CSourcePython: public IServerPluginCallbacks, public IEntityListener, publ
127127
int m_iClientCommandIndex;
128128
IMDLCacheNotify* m_pOldMDLCacheNotifier;
129129

130-
#if defined(ENGINE_ORANGEBOX) || defined(ENGINE_BMS) || defined(ENGINE_GMOD)
130+
#if defined(ENGINE_ORANGEBOX) || defined(ENGINE_BMS) || defined(ENGINE_GMOD) || defined(ENGINE_SDK2013)
131131
SpewOutputFunc_t m_pOldSpewOutputFunc;
132132
#endif
133133
};

0 commit comments

Comments
 (0)