]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/light_ydnar.c
YEAH! I think this fixes the lightmaps-of-patches bug!
[xonotic/netradiant.git] / tools / quake3 / q3map2 / light_ydnar.c
index e1762234393efe247e92d3e94103e0811ec6a7ce..24fa17a411c7a24c2900cdf52745473a98539962 100644 (file)
@@ -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 */