Skip to content

Commit 1cc7d37

Browse files
committed
Fix Dark Messiah build.
1 parent 4c8103a commit 1cc7d37

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/HalfLife2.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ bool CHalfLife2::IsMapValid(const char *map)
13671367
return FindMap(map) != SMFindMapResult::NotFound;
13681368
}
13691369

1370-
#if SOURCE_ENGINE == SE_EPISODEONE
1370+
#if SOURCE_ENGINE < SE_ORANGEBOX
13711371
class VKeyValuesSS_Helper {};
13721372
static bool VKeyValuesSS(CBaseEntity* pThisPtr, const char *pszKey, const char *pszValue, int offset)
13731373
{
@@ -1406,7 +1406,7 @@ string_t CHalfLife2::AllocPooledString(const char *pszValue)
14061406
// current targetname string_t, set it to our string to insert via SetKeyValue,
14071407
// read back the new targetname value, restore the old value, and return the new one.
14081408

1409-
#if SOURCE_ENGINE == SE_EPISODEONE
1409+
#if SOURCE_ENGINE < SE_ORANGEBOX
14101410
CBaseEntity* pEntity = nullptr;
14111411
for (int i = 0; i < gpGlobals->maxEntities; ++i)
14121412
{
@@ -1441,7 +1441,7 @@ string_t CHalfLife2::AllocPooledString(const char *pszValue)
14411441
string_t* pProp = (string_t*)((intp)pEntity + iNameOffset);
14421442
string_t backup = *pProp;
14431443

1444-
#if SOURCE_ENGINE == SE_EPISODEONE
1444+
#if SOURCE_ENGINE < SE_ORANGEBOX
14451445
static int iFuncOffset;
14461446
if (!g_pGameConf->GetOffset("DispatchKeyValue", &iFuncOffset) || !iFuncOffset)
14471447
{

0 commit comments

Comments
 (0)