1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-29 11:24:19 +01:00

Fix recent regression with finding engine ptr on CS:S, DoD:S, HL2:DM.

They are still only have engine v21, not yet v22 (let alone v23).
This commit is contained in:
Nicholas Hastings 2015-09-14 09:54:46 -04:00
parent f8917d32e6
commit 030706fdcd

View File

@ -114,6 +114,10 @@ void BaseProvider::Notify_DLLInit_Pre(CreateInterfaceFn engineFactory,
if (!engine)
{
engine = (IVEngineServer *)((engineFactory)("VEngineServer022", NULL));
if (!engine)
{
engine = (IVEngineServer *)((engineFactory)("VEngineServer021", NULL));
}
}
#else
engine = (IVEngineServer *)((engineFactory)(INTERFACEVERSION_VENGINESERVER, NULL));