shithub: qk1

Download patch

ref: 8bd89358c5cb1c25e5ed98080fe6b81db29b2c03
parent: 218ec193660b021d3ebe16e49d696bf3828fbdf1
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sat Dec 30 20:47:57 EST 2023

zspans: remove useless steps

--- a/d_scan.c
+++ b/d_scan.c
@@ -279,7 +279,7 @@
 void
 D_DrawZSpans(espan_t *pspan)
 {
-	int			count, spancount, spancountminus1, izi, izistep;
+	int			count, spancount, izi, izistep;
 	uzint		*pz;
 	float		zi;
 	float		zistepu;
@@ -294,7 +294,6 @@
 
 		do{
 			spancount = min(count, 16);
-			spancountminus1 = spancount - 1;
 			count -= spancount;
 
 			izi = (int)(zi * 0x8000 * 0x10000);
@@ -302,7 +301,7 @@
 				*pz++ = izi;
 				izi += izistep;
 			}
-			zi += count ? zistepu : dvars.zistepu*spancountminus1;
+			zi += zistepu;
 		}while(count > 0);
 	}while((pspan = pspan->pnext) != nil);
 }