Skip to content

Commit

Permalink
Clean up and fix save-load code
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Byass committed Jul 21, 2021
1 parent 1d4c79c commit 11f12c4
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
Binary file modified 1.1-1.2/Assemblies/BetterLoading.dll
Binary file not shown.
Binary file modified 1.3/Assemblies/BetterLoading.dll
Binary file not shown.
4 changes: 1 addition & 3 deletions Source/Stage/SaveLoad/1LoadWorldMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ public class LoadWorldMap : LoadingStage
private static bool _hasLoadedWorldFromFile;
private static bool _hasFinalizedWorldInit;
private static bool _loadingGeneratorDataFromFile;

private static WorldGenStep _currentWorldgenStep;
private static int _currentWorldgenStepNum;

private static int _numWorldgenSteps;

public LoadWorldMap([NotNull] Harmony instance) : base(instance)
Expand Down
1 change: 1 addition & 0 deletions Source/Stage/SaveLoad/2LoadMaps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public override bool IsCompleted()
public override void BecomeInactive()
{
_allMapsLoaded = false;
_currMapNum = -1;
}

public override void DoPatching(Harmony instance)
Expand Down
2 changes: 1 addition & 1 deletion Source/Stage/SaveLoad/4SpawnAllThings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public override bool IsCompleted()
public override void BecomeInactive()
{
_finished = false;
_currMapIdx = 0;
_currMapIdx = -1;
_numThingsThisMapSoFar = 0;
}

Expand Down

0 comments on commit 11f12c4

Please sign in to comment.