shithub: wl3d

Download patch

ref: eb9bc6ef4f8fd2595ec79e6469a1efd7b317fb28
parent: 4b74fc816bf1043f18782729e662f8255fe4502c
author: qwx <>
date: Fri Jul 21 16:52:01 EDT 2017

hub: fix psych2 skipping to fadeout on low framerates

--- a/hub.c
+++ b/hub.c
@@ -1256,11 +1256,13 @@
 	int n;
 
 	n = (qtc - 1) * 16 + 6;
-	if(n > 214 || nbrecv(csc, nil) > 0){
+	if(nbrecv(csc, nil) > 0){
 		n = 214;
 		qp = qsp->e - 1;
 		qtc = 0;
 	}
+	if(n > 214)
+		n = 214;
 	put(53, 101, n, 2, 0x37);
 	put(53, 101, n-1, 1, 0x32);
 	out();