From 18c11bf55e1d27ac33e304500d1e6817baba9571 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 5 Oct 2010 18:50:24 +0200 Subject: [PATCH] YEAH! I think this fixes the lightmaps-of-patches bug! --- tools/quake3/q3map2/light_ydnar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/quake3/q3map2/light_ydnar.c b/tools/quake3/q3map2/light_ydnar.c index e176223..24fa17a 100644 --- a/tools/quake3/q3map2/light_ydnar.c +++ b/tools/quake3/q3map2/light_ydnar.c @@ -1157,6 +1157,8 @@ void MapRawLightmap( int rawLightmapNum ) for( mapNonAxial = 0; mapNonAxial < 2; mapNonAxial++ ) { /* get drawverts and map first triangle */ + dv[ 1 ] = &verts[ pw[ r + 1 ] ]; + dv[ 2 ] = &verts[ pw[ r + 2 ] ]; MapTriangle( lm, info, dv, mapNonAxial ); /* get drawverts and map second triangle */ -- 2.39.2