fixed inactive elements when spawning with brush
This commit is contained in:
@@ -15,7 +15,6 @@ public class Chunk {
|
||||
private readonly Image image;
|
||||
private readonly int sizeX;
|
||||
private readonly int sizeY;
|
||||
private int frame;
|
||||
|
||||
public Chunk(int x, int y, int index) {
|
||||
Index = index;
|
||||
@@ -37,10 +36,9 @@ public class Chunk {
|
||||
for (int x = 0; x < sizeX; x++) {
|
||||
for (int y = 0; y < sizeY; y++) {
|
||||
if (Elements[x,y] != null)
|
||||
Elements[x,y].Update(frame);
|
||||
Elements[x,y].Update();
|
||||
}
|
||||
}
|
||||
frame++;
|
||||
// TODO: enable rain again
|
||||
// MakeItRain(_main.RainAmount);
|
||||
}
|
||||
@@ -127,7 +125,5 @@ public class Chunk {
|
||||
|
||||
what.Active = true;
|
||||
swapTo.Active = true;
|
||||
what.LastMove = frame;
|
||||
swapTo.LastMove = frame;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user