added density
code improvements
This commit is contained in:
@@ -78,6 +78,8 @@ public class Level {
|
||||
public void Swap(Element what, Element swapTo) {
|
||||
Element swap = new Element(what);
|
||||
|
||||
if (what == null || swapTo == null) return;
|
||||
|
||||
what.Position = swapTo.Position;
|
||||
_elements[swapTo.Position.X, swapTo.Position.Y] = what;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user