Fix compile

This commit is contained in:
s1lentq 2016-07-14 23:02:33 +07:00
parent 4a2029194b
commit 552a1d1bb4
3 changed files with 8 additions and 6 deletions

View File

@ -275,7 +275,7 @@ public:
virtual void Blocked(CBaseEntity *pOther) { if (m_pfnBlocked) (this->*m_pfnBlocked)(pOther); }
virtual CBaseEntity *Respawn() { return NULL; }
#ifndef REGAMEDLL_FIXES
#ifndef REGAMEDLL_ADD
// used by monsters that are created by the MonsterMaker
virtual void UpdateOwner() {}
#else
@ -313,7 +313,12 @@ public:
public:
// allow engine to allocate instance data
void *operator new(size_t stAllocateBlock, entvars_t *pevnew) { return ALLOC_PRIVATE(ENT(pevnew), stAllocateBlock); }
// don't use this.
#if _MSC_VER >= 1200 // only build this code if MSVC++ 6.0 or higher
void operator delete(void *pMem, entvars_t *pevnew) { pevnew->flags |= FL_KILLME; }
#endif
void UpdateOnRemove();
void EXPORT SUB_Remove();
void EXPORT SUB_DoNothing();

View File

@ -13,8 +13,8 @@ CMapInfo::CMapInfo()
// Should only be one of these.
ALERT(at_warning, "Warning: Multiple info_map_parameters entities in map!\n");
}
#endif
else
#endif
{
g_pMapInfo = this;
}

View File

@ -3,6 +3,7 @@
#include "version/appversion.h"
#include "osconfig.h"
#include "basetypes.h"
#include "asmlib.h"
#include "sse_mathfun.h"
@ -26,12 +27,8 @@
#include "tier0/dbg.h"
#include "dlls.h"
#include "basetypes.h"
#include "interface.h"
#include "hookchains_impl.h"
#include "regamedll.h"
#include "regamedll_interfaces.h"