about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-16 09:45:30 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-16 09:45:30 -0700
commitff1d4d988aa1afe772f4d4056cbc2e567bfcba71 (patch)
tree4944a3d657080b683049101c89f45a31e8ca5089 /main.lua
parentdc1f74b490e126a7b3fd63f4d39f724c5d171221 (diff)
downloadlines.love-ff1d4d988aa1afe772f4d4056cbc2e567bfcba71.tar.gz
bugfix
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index b4b1610..3189aae 100644
--- a/main.lua
+++ b/main.lua
@@ -721,7 +721,7 @@ end
 function contains_point(shape, p)
   if shape.mode == 'freehand' then
     -- not supported
-  elseif shape.mode == 'line' then
+  elseif shape.mode == 'line' or shape.mode == 'manhattan' then
     return shape.p1 == p or shape.p2 == p
   elseif shape.mode == 'polygon' then
     return table.find(shape.vertices, p)
@@ -733,6 +733,7 @@ function contains_point(shape, p)
   elseif shape.mode == 'deleted' then
     -- already done
   else
+    print(shape.mode)
     assert(false)
   end
 end