wm: glendy

Download patch

ref: ea3be59529a3aeb354b86789f0790575cb2b77e3
parent: 006968656f38e2d238f1579b9d7ae6e9682dff4b
author: mkf <mkf@cloud9p.org>
date: Tue Jun 4 16:53:09 EDT 2024

srv5: fix CONN numbers being random

--- a/srv5.c
+++ b/srv5.c
@@ -608,7 +608,10 @@
 			c->side = (head->side == PGlenda) ? PTrapper : PGlenda;
 		
 		qnext(&clients);
-		play(c, head);
+		if(c->side == PTrapper)
+			play(c, head);
+		else
+			play(head, c);
 	}
 }