diff options
author | David McMackins II <contact@mcmackins.org> | 2016-01-27 17:32:39 -0600 |
---|---|---|
committer | David McMackins II <contact@mcmackins.org> | 2016-01-27 17:32:39 -0600 |
commit | e79920e31e318aabc64615237fb3303a45481731 (patch) | |
tree | 60918d8f11ded4e10e6132259b28ff3974f855ec | |
parent | f15d8f989bfad15d5767d988517db669731b9472 (diff) |
Disallow splitting if size less than starting size
-rw-r--r-- | main.lua | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -147,6 +147,10 @@ end local function makemove() if wantsplit then + if selected.size < 10 then + return + end + local o = getoccupying(targetspace.x, targetspace.y) if math.abs(targetspace.x - selected.x) == 2 then if not canabsorb(o, 2) then |