imrpvoed water behavior
This commit is contained in:
1 parent
9a36418d23
commit
7458d5749c
2 files changed
+4
-7
No files matched your search
@@ -29,10 +29,10 @@ public abstract class Liquid : Element {
|
||||
else if (Chunk.IsEmpty(Position + randomDirection * VERTICAL_OPPOSITE))
|
||||
Chunk.Swap(this, Position + randomDirection * VERTICAL_OPPOSITE);
|
||||
|
||||
else if (Chunk.IsEmpty(Position + randomDirection))
|
||||
Chunk.Swap(this, Position + Vector2I.Right + randomDirection);
|
||||
else if (Chunk.IsEmpty(Position - randomDirection))
|
||||
Chunk.Swap(this, Position + Vector2I.Right + randomDirection * VERTICAL_OPPOSITE);
|
||||
else if (Chunk.IsEmpty(Position + 2 * randomDirection))
|
||||
Chunk.Swap(this, Position + 2 * randomDirection);
|
||||
else if (Chunk.IsEmpty(Position - 2 * randomDirection * VERTICAL_OPPOSITE))
|
||||
Chunk.Swap(this, Position - 2 * randomDirection * VERTICAL_OPPOSITE);
|
||||
}
|
||||
|
||||
public override void ActivateNeighbors() {
|
||||
|
||||
Reference in new issue
Block a user