1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-20 13:54:14 +01:00

Fix detection on TF2-branch games after recent updates.

This commit is contained in:
Nicholas Hastings 2015-09-10 18:22:11 -04:00
parent d735476d69
commit c06dc2dfed

View File

@ -280,6 +280,11 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve
}
else if (engineFactory("VEngineServer023", NULL) != NULL)
{
if (engineFactory("EngineTraceServer004", NULL) == NULL)
{
goto TF2branch;
}
if (engineFactory("IEngineSoundServer004", NULL) != NULL)
{
return MMBackend_Insurgency;
@ -358,6 +363,7 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve
}
else
{
TF2branch:
void *lib = (void *)serverFactory;
void *addr;
if (strcmp(game_name, "cstrike") == 0