Skip to content

Commit 3c5a2fa

Browse files
committed
Fix grid resetting
1 parent 37418d3 commit 3c5a2fa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Core/Simulation/Grid/Core/GridManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public static void Setup () {
134134

135135
public static void Initialize ()
136136
{
137+
GridVersion = 1;
137138

138139
if (_settingsChanged) {
139140
if (_settings == null)
@@ -152,7 +153,6 @@ public static void Initialize ()
152153
Grid[i].FastInitialize();
153154
}
154155
}
155-
GridVersion = 1;
156156
}
157157

158158
public static void LateSimulate () {

Core/Simulation/Grid/Core/GridNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void FastInitialize ()
5656
this.ClosedSetVersion = 0;
5757
this.HeapIndex = 0;
5858
this.HeapVersion = 0;
59-
UpdateValues ();
59+
this.GridVersion = 0;
6060
}
6161

6262
#endregion

Example/AutoSpawner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected override void OnGameStart()
5454
Command com = new Command(Lockstep.Data.AbilityDataItem.FindInterfacer<Scan>().ListenInputID);
5555
com.Add<Vector2d>(battlePos);
5656

57-
PlayerManager.SendCommand(com);
57+
//PlayerManager.SendCommand(com);
5858

5959
Selector.Clear();
6060
}

0 commit comments

Comments
 (0)