diff --git a/project/code/TMV/Mission.cs b/project/code/TMV/Mission.cs index b448556..6adce01 100644 --- a/project/code/TMV/Mission.cs +++ b/project/code/TMV/Mission.cs @@ -66,7 +66,7 @@ public partial class Mission : Node3D { if (Build) { - RebuildMap(); + Timing.TimeStage("Build", () => RebuildMap()); Build = false; } if (Clear) @@ -106,13 +106,13 @@ public partial class Mission : Node3D if (_file.Chunks.TryGetValue("BRLIST", out var brList)) { - var objHierarchy = Timing.TimeStage("Hierarchy", () => BuildHierarchy(_file)); + var objHierarchy = Timing.TimeStage("Hierarchy", BuildHierarchy); Timing.TimeStage("Object Placement", () => PlaceObjects((BrList)brList, objHierarchy)); } } // TODO: Make this less of a mess - private ObjectHierarchy BuildHierarchy(DbFile db) + private ObjectHierarchy BuildHierarchy() { ObjectHierarchy objHierarchy; if (_file.Chunks.TryGetValue("GAM_FILE", out var gamFileChunk))