From 925f9a100d41f1b3eda1963173f276a1cde401e4 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Wed, 3 Aug 2022 10:29:54 +0700 Subject: [PATCH] Change `LevelCore`s to be loaded after base API --- sources/Packages.uc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sources/Packages.uc b/sources/Packages.uc index e87d703..90a8052 100644 --- a/sources/Packages.uc +++ b/sources/Packages.uc @@ -81,9 +81,8 @@ private simulated function InitializeClient() return; } default.selfReference = self; - // TODO: Swap these around after dealing with aliases - class'ClientLevelCore'.static.CreateLevelCore(self); _ = class'Global'.static.GetInstance(); + class'ClientLevelCore'.static.CreateLevelCore(self); } private function InitializeServer() @@ -104,11 +103,10 @@ private function InitializeServer() } default.selfReference = self; // Launch and setup core Acedia - // TODO: Swap these around after dealing with aliases - serverCore = class'ServerLevelCore'.static.CreateLevelCore(self); _ = class'Global'.static.GetInstance(); _server = class'ServerGlobal'.static.GetInstance(); _client = class'ClientGlobal'.static.GetInstance(); + serverCore = class'ServerLevelCore'.static.CreateLevelCore(self); for (i = 0; i < package.length; i += 1) { _.environment.RegisterPackage_S(package[i]); }