]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
now renders inward portals rather than outward portals in r_drawportals (more useful)
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 13 May 2001 07:49:53 +0000 (07:49 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 13 May 2001 07:49:53 +0000 (07:49 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@202 d7cf8633-e32d-0410-b094-e92efae38249

gl_rsurf.c

index 658c81b2917313d20b01b6cb0846866733587e10..e3756c7fa0894f2ef2c8c0f4bba699a9410f9156 100644 (file)
@@ -1242,9 +1242,9 @@ void R_DrawPortals()
                        while (portal)
                        {
                                transpolybegin(0, 0, 0, TPOLYTYPE_ALPHA);
-                               point = portal->points;
-                               endpoint = point + portal->numpoints;
-                               for (;point < endpoint;point++)
+                               point = portal->points + portal->numpoints - 1;
+                               endpoint = portal->points;
+                               for (;point >= endpoint;point--)
                                        transpolyvertub(point->position[0], point->position[1], point->position[2], 0, 0, r, g, b, 32);
                                transpolyend();
                                portal = portal->next;