summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-08-06 23:02:52 +0100
committerubq323 <ubq323@ubq323.website>2022-08-06 23:02:52 +0100
commit5ae6918c295a04c86737b050855fb0f0fcf0185b (patch)
tree08d04c26410719efc72f9fa7122086e68b945796
parent2dc6ee5f18bf9a259d21c1f0cbc611bf17fdf3f2 (diff)
img
-rw-r--r--img/better_disp.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/img/better_disp.lua b/img/better_disp.lua
index c278396..77b5aa0 100644
--- a/img/better_disp.lua
+++ b/img/better_disp.lua
@@ -85,7 +85,9 @@ local function adjust_to_2_colors(R,gromlings,pdists)
-- todo: be cleverer when deciding whether to merge a into b, or b into a
-- currently just merge b into a
- assert(best_a and best_b and best_a ~= best_b)
+ assert(best_a,"no best_a")
+ assert(best_b,"no best_b")
+ assert(best_a ~= best_b,"best a and b are the same")
all_current_colors[best_b] = false
ncolors=ncolors-1
for gidx,col in ipairs(gromling_colors) do