mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Merge pull request #265 from Azaezel/alpha40_dbCacheClearCorrectly
proper variation on the datablock file list erasure
This commit is contained in:
commit
3bc479a921
2 changed files with 9 additions and 1 deletions
|
|
@ -163,6 +163,10 @@ function endMission()
|
||||||
getScene(0).delete();
|
getScene(0).delete();
|
||||||
MissionCleanup.delete();
|
MissionCleanup.delete();
|
||||||
|
|
||||||
|
if ($Pref::Server::EnableDatablockCache)
|
||||||
|
resetDatablockCache();
|
||||||
|
DatablockFilesList.empty();
|
||||||
|
|
||||||
clearServerPaths();
|
clearServerPaths();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -176,6 +180,10 @@ function resetMission()
|
||||||
new SimGroup( MissionCleanup );
|
new SimGroup( MissionCleanup );
|
||||||
$instantGroup = MissionCleanup;
|
$instantGroup = MissionCleanup;
|
||||||
|
|
||||||
|
if ($Pref::Server::EnableDatablockCache)
|
||||||
|
resetDatablockCache();
|
||||||
|
DatablockFilesList.empty();
|
||||||
|
|
||||||
clearServerPaths();
|
clearServerPaths();
|
||||||
|
|
||||||
// Inform the game code we're resetting.
|
// Inform the game code we're resetting.
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,6 @@ function onServerCreated()
|
||||||
physicsInitWorld( "server" );
|
physicsInitWorld( "server" );
|
||||||
|
|
||||||
physicsStartSimulation("server");
|
physicsStartSimulation("server");
|
||||||
DatablockFilesList.clear();
|
|
||||||
loadDatablockFiles( DatablockFilesList, true );
|
loadDatablockFiles( DatablockFilesList, true );
|
||||||
|
|
||||||
callOnModules("onServerScriptExec", "Core");
|
callOnModules("onServerScriptExec", "Core");
|
||||||
|
|
@ -287,6 +286,7 @@ function onServerDestroyed()
|
||||||
|
|
||||||
if ($Pref::Server::EnableDatablockCache)
|
if ($Pref::Server::EnableDatablockCache)
|
||||||
resetDatablockCache();
|
resetDatablockCache();
|
||||||
|
DatablockFilesList.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Guid list maintenance functions
|
/// Guid list maintenance functions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue