From 1cc7d3718922283f60dd4501137ef7b8af829684 Mon Sep 17 00:00:00 2001
From: Nick Hastings <nshastings@gmail.com>
Date: Sun, 28 Jun 2020 13:41:27 -0400
Subject: [PATCH] Fix Dark Messiah build.

---
 core/HalfLife2.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/HalfLife2.cpp b/core/HalfLife2.cpp
index f9e60f37..d207b77b 100644
--- a/core/HalfLife2.cpp
+++ b/core/HalfLife2.cpp
@@ -1367,7 +1367,7 @@ bool CHalfLife2::IsMapValid(const char *map)
 	return FindMap(map) != SMFindMapResult::NotFound;
 }
 
-#if SOURCE_ENGINE == SE_EPISODEONE
+#if SOURCE_ENGINE < SE_ORANGEBOX
 class VKeyValuesSS_Helper {};
 static bool VKeyValuesSS(CBaseEntity* pThisPtr, const char *pszKey, const char *pszValue, int offset)
 {
@@ -1406,7 +1406,7 @@ string_t CHalfLife2::AllocPooledString(const char *pszValue)
 	// current targetname string_t, set it to our string to insert via SetKeyValue,
 	// read back the new targetname value, restore the old value, and return the new one.
 
-#if SOURCE_ENGINE == SE_EPISODEONE
+#if SOURCE_ENGINE < SE_ORANGEBOX
 	CBaseEntity* pEntity = nullptr;
 	for (int i = 0; i < gpGlobals->maxEntities; ++i)
 	{
@@ -1441,7 +1441,7 @@ string_t CHalfLife2::AllocPooledString(const char *pszValue)
 	string_t* pProp = (string_t*)((intp)pEntity + iNameOffset);
 	string_t backup = *pProp;
 
-#if SOURCE_ENGINE == SE_EPISODEONE
+#if SOURCE_ENGINE < SE_ORANGEBOX
 	static int iFuncOffset;
 	if (!g_pGameConf->GetOffset("DispatchKeyValue", &iFuncOffset) || !iFuncOffset)
 	{