shithub: qk1

Download patch

ref: bf02a0915ffa42a3b051ea6e41c9ed1528d04614
parent: 9084a389eba9cd1089560473306b57b418730ef5
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon Oct 16 09:41:05 EDT 2023

oops

--- a/d_scan.c
+++ b/d_scan.c
@@ -228,7 +228,7 @@
 	izi += izistep; \
 	s += sstep; \
 	t += tstep; \
-}
+}while(0)
 
 void D_DrawSpans16_Fence (espan_t *pspan)
 {
@@ -246,6 +246,7 @@
 
 	// we count on FP exceptions being turned off to avoid range problems
 	izistep = (int)(d_zistepu * 0x8000 * 0x10000);
+	sstep = tstep = 0;
 
 	do
 	{
@@ -319,6 +320,7 @@
 			WRITEFENCE(-3);
 			WRITEFENCE(-2);
 			WRITEFENCE(-1);
+			USED(s, t);
 
 			s = snext;
 			t = tnext;
@@ -368,6 +370,7 @@
 			case  3: WRITEFENCE(-3);
 			case  2: WRITEFENCE(-2);
 			case  1: WRITEFENCE(-1);
+			USED(izi, s, t);
 			}
 		}
 	}