mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2024-12-01 13:24:25 +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:
parent
f8917d32e6
commit
030706fdcd
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user