From 7088dac899e165e84133ba99e1549a1dadec054f Mon Sep 17 00:00:00 2001 From: wyatt8740 Date: Mon, 2 Oct 2023 02:28:26 -0400 Subject: fixed water warping effect crashing the game after increasing MAXHEIGHT and MAXWIDTH for software rendered quakeworld. --- QW/client/r_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'QW/client/r_main.c') diff --git a/QW/client/r_main.c b/QW/client/r_main.c index 3f59588..64363d0 100644 --- a/QW/client/r_main.c +++ b/QW/client/r_main.c @@ -1095,7 +1095,7 @@ void R_InitTurb (void) { int i; - for (i=0 ; i<1280 ; i++) + for (i=0 ; i<(SIN_BUFFER_SIZE) ; i++) { sintable[i] = AMP + sin(i*3.14159*2/CYCLE)*AMP; intsintable[i] = AMP2 + sin(i*3.14159*2/CYCLE)*AMP2; // AMP2, not 20 -- cgit v1.2.3