From: divverent Date: Wed, 13 Oct 2010 17:42:50 +0000 (+0000) Subject: fix another typo in the water rendering improvement X-Git-Tag: xonotic-v0.1.0preview~130 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=19cf2d641839fbfe6f979ef41a1d073e75b72bfb;p=xonotic%2Fdarkplaces.git fix another typo in the water rendering improvement git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10523 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=89a044f065d368295a805d75fa38639150a75ab5 --- diff --git a/gl_rmain.c b/gl_rmain.c index 66602f20..64f7f03f 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -7810,9 +7810,9 @@ void R_Water_AddWaterPlane(msurface_t *surface) p->mins[0] = min(p->mins[0], surface->mins[0]); p->mins[1] = min(p->mins[1], surface->mins[1]); p->mins[2] = min(p->mins[2], surface->mins[2]); - p->maxs[0] = min(p->maxs[0], surface->maxs[0]); - p->maxs[1] = min(p->maxs[1], surface->maxs[1]); - p->maxs[2] = min(p->maxs[2], surface->maxs[2]); + p->maxs[0] = max(p->maxs[0], surface->maxs[0]); + p->maxs[1] = max(p->maxs[1], surface->maxs[1]); + p->maxs[2] = max(p->maxs[2], surface->maxs[2]); } // merge this surface's materialflags into the waterplane p->materialflags |= t->currentmaterialflags;