]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rsurf.c
now renders inward portals rather than outward portals in r_drawportals (more useful)
[xonotic/darkplaces.git] / 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;