From: lordhavoc Date: Sun, 13 May 2001 07:49:53 +0000 (+0000) Subject: now renders inward portals rather than outward portals in r_drawportals (more useful) X-Git-Tag: RELEASE_0_2_0_RC1~826 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=556eea59a62cce53c8578560ce071ca01899d4a2 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 --- 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;