]> 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)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 13 Oct 2010 17:42:50 +0000 (17:42 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10523 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 3306ad0d836f9079f94a8fc110c65306452c6ac3..3633665a69bb486da5b9fb957587d7079b82d7cc 100644 (file)
@@ -8534,9 +8534,9 @@ void R_Water_AddWaterPlane(msurface_t *surface, int entno)
                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;