Stops 16bit rendering from crashing underwater.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@79 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-08-30 23:17:20 +00:00
parent ccd3153d9a
commit 912fe34e6a

View file

@ -549,7 +549,7 @@ r_refdef.viewangles[2]= 0;
#else
r_dowarp = r_waterwarp.value && (r_viewleaf->contents <= Q1CONTENTS_WATER);
#endif
if (vid.width > MAXWIDTH || r_pixbytes == 4 || scr_chatmode)
if (vid.width > MAXWIDTH || r_pixbytes != 1 || scr_chatmode)
r_dowarp = 0;
if (r_dosirds)
r_dowarp = 0;