mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-11 08:20:45 +00:00
proper variation on the datablock file list erasure
clear is a nonfuncitonal command for arrayobjects, so a) needed to use erase, and b) needed to fill in a couple more spots
This commit is contained in:
parent
45f45ca974
commit
69f154e0b9
2 changed files with 9 additions and 1 deletions
|
|
@ -163,6 +163,10 @@ function endMission()
|
|||
getScene(0).delete();
|
||||
MissionCleanup.delete();
|
||||
|
||||
if ($Pref::Server::EnableDatablockCache)
|
||||
resetDatablockCache();
|
||||
DatablockFilesList.empty();
|
||||
|
||||
clearServerPaths();
|
||||
}
|
||||
|
||||
|
|
@ -176,6 +180,10 @@ function resetMission()
|
|||
new SimGroup( MissionCleanup );
|
||||
$instantGroup = MissionCleanup;
|
||||
|
||||
if ($Pref::Server::EnableDatablockCache)
|
||||
resetDatablockCache();
|
||||
DatablockFilesList.empty();
|
||||
|
||||
clearServerPaths();
|
||||
|
||||
// Inform the game code we're resetting.
|
||||
|
|
|
|||
|
|
@ -201,7 +201,6 @@ function onServerCreated()
|
|||
physicsInitWorld( "server" );
|
||||
|
||||
physicsStartSimulation("server");
|
||||
DatablockFilesList.clear();
|
||||
loadDatablockFiles( DatablockFilesList, true );
|
||||
|
||||
callOnModules("onServerScriptExec", "Core");
|
||||
|
|
@ -287,6 +286,7 @@ function onServerDestroyed()
|
|||
|
||||
if ($Pref::Server::EnableDatablockCache)
|
||||
resetDatablockCache();
|
||||
DatablockFilesList.empty();
|
||||
}
|
||||
|
||||
/// Guid list maintenance functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue