mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Merge pull request #737 from Azaezel/alpha40/GCOrder
ensure MissionCleanup exists before .mis load
This commit is contained in:
commit
2198dd14d1
1 changed files with 7 additions and 6 deletions
|
|
@ -86,6 +86,13 @@ function loadMissionStage2()
|
||||||
// Create the mission group off the ServerGroup
|
// Create the mission group off the ServerGroup
|
||||||
$instantGroup = ServerGroup;
|
$instantGroup = ServerGroup;
|
||||||
|
|
||||||
|
// Mission cleanup group. This is where run time components will reside. The MissionCleanup
|
||||||
|
// group will be added to the ServerGroup.
|
||||||
|
new SimGroup( MissionCleanup );
|
||||||
|
|
||||||
|
// Make the MissionCleanup group the place where all new objects will automatically be added.
|
||||||
|
$instantGroup = MissionCleanup;
|
||||||
|
|
||||||
// Make sure the mission exists
|
// Make sure the mission exists
|
||||||
%file = $Server::MissionFile;
|
%file = $Server::MissionFile;
|
||||||
|
|
||||||
|
|
@ -120,12 +127,6 @@ function loadMissionStage2()
|
||||||
if( isObject( theLevelInfo ) )
|
if( isObject( theLevelInfo ) )
|
||||||
$Server::MissionName = theLevelInfo.levelName;
|
$Server::MissionName = theLevelInfo.levelName;
|
||||||
|
|
||||||
// Mission cleanup group. This is where run time components will reside. The MissionCleanup
|
|
||||||
// group will be added to the ServerGroup.
|
|
||||||
new SimGroup( MissionCleanup );
|
|
||||||
|
|
||||||
// Make the MissionCleanup group the place where all new objects will automatically be added.
|
|
||||||
$instantGroup = MissionCleanup;
|
|
||||||
|
|
||||||
%hasGameMode = callGamemodeFunction("onCreateGame");
|
%hasGameMode = callGamemodeFunction("onCreateGame");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue