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:
commit
4cff6368d2
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user