Advertisement
illwieckz

q3map2 store off bsp after bounce

Feb 11th, 2016
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.03 KB | None | 0 0
  1. diff --git a/tools/quake3/q3map2/light.c b/tools/quake3/q3map2/light.c
  2. index c70f9cf..cbe6620 100644
  3. --- a/tools/quake3/q3map2/light.c
  4. +++ b/tools/quake3/q3map2/light.c
  5. @@ -2032,12 +2032,6 @@ void LightWorld( const char *bspfilepath, qboolean fastAllocate ){
  6.         bt = bounce;
  7.         while ( bounce > 0 )
  8.         {
  9. -               /* store off the bsp between bounces */
  10. -               StoreSurfaceLightmaps( fastAllocate );
  11. -               UnparseEntities();
  12. -               Sys_Printf( "Writing %s\n", bspfilepath );
  13. -               WriteBSPFile( bspfilepath );
  14. -
  15.                 /* note it */
  16.                 Sys_Printf( "\n--- Radiosity (bounce %d of %d) ---\n", b, bt );
  17.  
  18. @@ -2097,6 +2091,12 @@ void LightWorld( const char *bspfilepath, qboolean fastAllocate ){
  19.                 bounce--;
  20.                 b++;
  21.         }
  22. +
  23. +       /* store off the bsp */
  24. +       StoreSurfaceLightmaps( fastAllocate );
  25. +       UnparseEntities();
  26. +       Sys_Printf( "Writing %s\n", bspfilepath );
  27. +       WriteBSPFile( bspfilepath );
  28.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement