Browse Source

Change to support Acedia's new shutdown proces

develop
Anton Tarasenko 2 years ago
parent
commit
51beae9849
  1. 6
      sources/Packages.uc

6
sources/Packages.uc

@ -81,6 +81,7 @@ private simulated function InitializeClient()
return; return;
} }
default.selfReference = self; default.selfReference = self;
// TODO: Swap these around after dealing with aliases
class'ClientLevelCore'.static.CreateLevelCore(self); class'ClientLevelCore'.static.CreateLevelCore(self);
_ = class'Global'.static.GetInstance(); _ = class'Global'.static.GetInstance();
} }
@ -103,6 +104,7 @@ private function InitializeServer()
} }
default.selfReference = self; default.selfReference = self;
// Launch and setup core Acedia // Launch and setup core Acedia
// TODO: Swap these around after dealing with aliases
serverCore = class'ServerLevelCore'.static.CreateLevelCore(self); serverCore = class'ServerLevelCore'.static.CreateLevelCore(self);
_ = class'Global'.static.GetInstance(); _ = class'Global'.static.GetInstance();
_server = class'ServerGlobal'.static.GetInstance(); _server = class'ServerGlobal'.static.GetInstance();
@ -148,9 +150,7 @@ function ServerTraveling(string URL, bool bItems)
votingAdapter = none; votingAdapter = none;
} }
default.selfReference = none; default.selfReference = none;
_.environment.DisableAllFeatures(); _.environment.ShutDown();
class'UnrealService'.static.Require().Destroy();
class'ServerLevelCore'.static.GetInstance().Destroy();
if (nextMutator != none) { if (nextMutator != none) {
nextMutator.ServerTraveling(URL, bItems); nextMutator.ServerTraveling(URL, bItems);
} }

Loading…
Cancel
Save