diff options
| author | wyatt8740 <wyatt8740@users.noreply.github.com> | 2023-10-02 02:28:26 -0400 |
|---|---|---|
| committer | wyatt8740 <wyatt8740@users.noreply.github.com> | 2023-10-02 02:28:26 -0400 |
| commit | 7088dac899e165e84133ba99e1549a1dadec054f (patch) | |
| tree | 50ef835bae28eb65b4c4d36565e8eeee536cf2b9 /QW/client/r_shared.h | |
| parent | 45959aa12ee28db62ef8be97a0d5e0bc5644b691 (diff) | |
| download | quake-pum-7088dac899e165e84133ba99e1549a1dadec054f.tar.gz | |
fixed water warping effect crashing the game after increasing MAXHEIGHT and MAXWIDTH for software rendered quakeworld.
Diffstat (limited to 'QW/client/r_shared.h')
| -rw-r--r-- | QW/client/r_shared.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/QW/client/r_shared.h b/QW/client/r_shared.h index ed831b3..9a2a103 100644 --- a/QW/client/r_shared.h +++ b/QW/client/r_shared.h @@ -33,6 +33,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define MAXHEIGHT 2048 #define MAXWIDTH 2560 +#define MAXDIMENSION ((MAXHEIGHT > MAXWIDTH) ? MAXHEIGHT : MAXWIDTH) + +#define SIN_BUFFER_SIZE (MAXDIMENSION+CYCLE) + #define INFINITE_DISTANCE 0x10000 // distance that's always guaranteed to // be farther away than anything in // the scene @@ -51,8 +55,8 @@ extern int r_drawnpolycount; extern cvar_t r_clearcolor; -extern int sintable[1280]; -extern int intsintable[1280]; +extern int sintable[SIN_BUFFER_SIZE]; +extern int intsintable[SIN_BUFFER_SIZE]; extern vec3_t vup, base_vup; extern vec3_t vpn, base_vpn; |
