From 556eea59a62cce53c8578560ce071ca01899d4a2 Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Sun, 13 May 2001 07:49:53 +0000 Subject: [PATCH] now renders inward portals rather than outward portals in r_drawportals (more useful) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@202 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rsurf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gl_rsurf.c b/gl_rsurf.c index 658c81b2..e3756c7f 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -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; -- 2.39.2