From 912fe34e6a51ea904016f0e9e9f60b1badc54f99 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 30 Aug 2004 23:17:20 +0000 Subject: [PATCH] Stops 16bit rendering from crashing underwater. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@79 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/sw/r_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/sw/r_misc.c b/engine/sw/r_misc.c index 7873fbf8..cbeb6e8c 100644 --- a/engine/sw/r_misc.c +++ b/engine/sw/r_misc.c @@ -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;