mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 23:05:30 +03:00
Added cvar to ignore timestamps when checking whether or not to rebuild nodegraph, relying on internal map versions instead
This commit is contained in:
parent
49cb43d6e7
commit
03da4d6b58
@ -71,6 +71,8 @@ CON_COMMAND( ai_debug_node_connect, "Debug the attempted connection between two
|
|||||||
ConVar g_ai_norebuildgraph( "ai_norebuildgraph", "0" );
|
ConVar g_ai_norebuildgraph( "ai_norebuildgraph", "0" );
|
||||||
#ifdef MAPBASE
|
#ifdef MAPBASE
|
||||||
ConVar g_ai_norebuildgraphmessage( "ai_norebuildgraphmessage", "0", FCVAR_ARCHIVE, "Stops the \"Node graph out of date\" message from appearing when rebuilding node graph" );
|
ConVar g_ai_norebuildgraphmessage( "ai_norebuildgraphmessage", "0", FCVAR_ARCHIVE, "Stops the \"Node graph out of date\" message from appearing when rebuilding node graph" );
|
||||||
|
|
||||||
|
ConVar g_ai_ignore_graph_timestamps( "g_ai_ignore_graph_timestamps", "1", FCVAR_NONE, "Ignores file timestamps when rebuilding nodegraphs, only relying on internal map version differences" );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -987,6 +989,11 @@ bool CAI_NetworkManager::IsAIFileCurrent ( const char *szMapName )
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MAPBASE
|
||||||
|
if (g_ai_ignore_graph_timestamps.GetBool())
|
||||||
|
return true;
|
||||||
|
#endif
|
||||||
|
|
||||||
{
|
{
|
||||||
const char *pGameDir = CommandLine()->ParmValue( "-game", "hl2" );
|
const char *pGameDir = CommandLine()->ParmValue( "-game", "hl2" );
|
||||||
char szLoweredGameDir[256];
|
char szLoweredGameDir[256];
|
||||||
|
Loading…
Reference in New Issue
Block a user