fixed inactivity timer
This commit is contained in:
@@ -157,7 +157,9 @@ public class Chunk {
|
|||||||
swapTo.Chunk.Elements[swapTo.Position.X, swapTo.Position.Y] = swapTo;
|
swapTo.Chunk.Elements[swapTo.Position.X, swapTo.Position.Y] = swapTo;
|
||||||
|
|
||||||
what.Active = true;
|
what.Active = true;
|
||||||
|
what.Moved();
|
||||||
swapTo.Active = true;
|
swapTo.Active = true;
|
||||||
|
swapTo.Moved();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string ToString() {
|
public override string ToString() {
|
||||||
|
|||||||
@@ -110,4 +110,8 @@ public class Element {
|
|||||||
|
|
||||||
this.color = color;
|
this.color = color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Moved() {
|
||||||
|
lastMove = Engine.GetFramesDrawn();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user