]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix another typo in the water rendering improvement
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 13 Oct 2010 17:42:50 +0000 (17:42 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 13 Oct 2010 19:28:28 +0000 (21:28 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10523 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=89a044f065d368295a805d75fa38639150a75ab5

gl_rmain.c

index 66602f201ff2b2e6f35dacb9f6a2f795c2897180..64f7f03f9e49df977ab1bdfd22b5adba13ce088e 100644 (file)
@@ -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;