shithub: qk2

Download patch

ref: 4c0d81ebc043de0e16fc9331c1246b16bcbc2c02
parent: 057aa6afc8274d0907981153155f41551bb73cde
author: qwx <>
date: Sun Dec 23 08:40:24 EST 2018

fix sintable size to account for warping

--- a/dat.h
+++ b/dat.h
@@ -1980,7 +1980,7 @@
 extern pixel_t *cacheblock;
 extern int r_screenwidth;
 extern int r_drawnpolycount;
-extern int sintable[MAXWIDTH];
+extern int sintable[MAXWIDTH+CYCLE];
 extern int intsintable[nelem(sintable)];
 extern int blanktable[nelem(sintable)];
 extern vec3_t vup;
--- a/r_rast.c
+++ b/r_rast.c
@@ -25,7 +25,7 @@
 static qboolean	makeleftedge, makerightedge;
 qboolean		r_nearzionly;
 
-int		sintable[MAXWIDTH];
+int		sintable[MAXWIDTH+CYCLE];
 int		intsintable[nelem(sintable)];
 int		blanktable[nelem(sintable)];		// PGM