Advertisement
Guest User

Patch for NRFTL

a guest
Oct 24th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.24 KB | None | 0 0
  1. // TODO add boolean variable optionToExtendLimits to setup menu etc.
  2.  
  3. r_bsp.c
  4. drawseg_t   drawsegs[MAXDRAWSEGS_EXT];
  5.  
  6. r_bsp.h
  7. extern drawseg_t    drawsegs[MAXDRAWSEGS_EXT];
  8.  
  9. r_defs.h
  10. #define MAXDRAWSEGS_EXT     2048
  11.  
  12. r_plane.c
  13. #define MAXVISPLANES_EXT    1024
  14. visplane_t      visplanes[MAXVISPLANES_EXT];
  15.  
  16. r_plane.c::R_FindPlane
  17.     //if (lastvisplane - visplanes == MAXVISPLANES)
  18.     if(lastvisplane - visplanes == (optionToExtendLimits ? MAXVISPLANES_EXT : MAXVISPLANES))
  19.  
  20. r_plane.c::R_DrawPlanes
  21.     //if (ds_p - drawsegs > MAXDRAWSEGS)
  22.     if(ds_p - drawsegs > (optionToExtendLimits ? MAXDRAWSEGS_EXT : MAXDRAWSEGS)) // This is redundant
  23.     ...
  24.     //if (lastvisplane - visplanes > MAXVISPLANES)
  25.     if(lastvisplane - visplanes > (optionToExtendLimits ? MAXVISPLANES_EXT : MAXVISPLANES))
  26.    
  27. r_segs.c::R_StoreWallRange
  28.     //if (ds_p == &drawsegs[MAXDRAWSEGS])
  29.     if(ds_p == &drawsegs[optionToExtendLimits ? MAXDRAWSEGS_EXT : MAXDRAWSEGS])
  30.  
  31. d_main.c
  32. void D_PageDrawer (void)
  33. {
  34.     if(W_CheckNumForName(pagename) == -1 && strcmp(pagename, "TITLEPIC") == 0)
  35.     {   // Detect missing TITLEPIC
  36.         V_DrawPatch (0,0, 0, W_CacheLumpName("INTERPIC", PU_CACHE));
  37.         return;
  38.     }
  39.  
  40.     V_DrawPatch (0,0, 0, W_CacheLumpName(pagename, PU_CACHE));
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement