shithub: asif

Download patch

ref: d098f34bf3d3f7b0c6837cd4fc6b21ebd23569ef
parent: e98e51ac03dc0b4e8198a052410cf96b16a6ccc3
author: qwx <qwx@sciops.net>
date: Wed Mar 23 17:41:10 EDT 2022

client: allow holding down the mouse to draw obstacles

--- a/path/client.c
+++ b/path/client.c
@@ -48,8 +48,7 @@
 		case Amouse:
 			if(mc->buttons == 0)
 				break;
-			if((n = scrselect(m.xy)) != nil
-			&& mc->buttons != m.buttons && p != n)
+			if((n = scrselect(m.xy)) != nil && p != n)
 				mouseinput(n, mc->Mouse);
 			p = n;
 			updatedrw();