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

Merge pull request #6 from alliedmodders/swarm-fix

Fix broken Alien Swarm engine detection (regression from 013c5490904) (r=KyleS).
This commit is contained in:
Nicholas Hastings 2014-08-11 19:53:35 -04:00
commit 4cff6368d2

View File

@ -288,8 +288,13 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve
else if (engineFactory("VEngineServer022", NULL) != NULL &&
engineFactory("VEngineCvar007", NULL) != NULL)
{
if (serverFactory("ServerGameClients004", NULL))
if (engineFactory("EngineTraceServer004", NULL) != NULL)
{
if (engineFactory("XboxSystemInterface001", NULL) != NULL)
{
return MMBackend_AlienSwarm;
}
if (strcmp(game_name, "portal2") == 0)
{
return MMBackend_Portal2;
@ -297,11 +302,6 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve
return MMBackend_Blade;
}
if (engineFactory("EngineTraceServer004", NULL) != NULL)
{
return MMBackend_AlienSwarm;
}
else if (engineFactory("VPrecacheSystem001", NULL) != NULL)
{
if (engineFactory("ServerGameTags002", NULL) != NULL)