1.1 --- a/core/HalfLife2.cpp Sat Apr 14 04:19:58 2007 +0000
1.2 +++ b/core/HalfLife2.cpp Sat Apr 14 04:27:47 2007 +0000
1.3 @@ -13,6 +13,7 @@
1.4 */
1.5
1.6 #include "HalfLife2.h"
1.7 +#include "sourcemod.h"
1.8 #include "sourcemm_api.h"
1.9
1.10 CHalfLife2 g_HL2;
1.11 @@ -70,8 +71,12 @@
1.12
1.13 void CHalfLife2::OnSourceModStartup(bool late)
1.14 {
1.15 - if (!g_IsOriginalEngine && !g_pSharedChangeInfo)
1.16 + /* The Ship currently is the only known game to use an older version of the engine */
1.17 + if (strcasecmp(g_SourceMod.GetModFolderName(), "ship") == 0)
1.18 {
1.19 + /* :TODO: Better engine versioning - perhaps something added to SourceMM? */
1.20 + g_IsOriginalEngine = true;
1.21 + } else if (!g_pSharedChangeInfo) {
1.22 g_pSharedChangeInfo = engine->GetSharedEdictChangeInfo();
1.23 }
1.24 }