shithub: rott

Download patch

ref: 5a8cb710992e1914d0908b76bf77b9ceab58a891
parent: bcc08f6457f4bd4c42823ce28b955fad0857c8f9
author: Marc-Alexandre Espiaut <marcalexandre@member.fsf.org>
date: Tue Jun 5 09:27:07 EDT 2018

Removing obsolete development code from rt_scale.c

--- a/rott/rt_scale.c
+++ b/rott/rt_scale.c
@@ -169,38 +169,8 @@
     int  bottomscreen;
     byte * oldlevel;
     byte * seelevel;
-#if (DEVELOPMENT == 1)
-    boolean found=false;
-    int  i;
-#endif
 
     whereami=25;
-#if (DEVELOPMENT == 1)
-    if ((shadingtable>=colormap) && (shadingtable<=(colormap+(31*256))))
-    {
-        found=true;
-    }
-    else if ((shadingtable>=redmap) && (shadingtable<=(redmap+(31*256))))
-    {
-        found=true;
-    }
-    else
-    {
-        for (i=0; i<MAXPLAYERCOLORS; i++)
-        {
-            if ((shadingtable>=playermaps[i]) || (shadingtable<=(playermaps[i]+(31*256))))
-                found=true;
-        }
-    }
-    if (found==false)
-    {
-        Error ("Shadingtable out of range\n");
-    }
-    if ((level<0) || (level>=64))
-    {
-        Error ("translucent level out of range\n");
-    }
-#endif
 
     seelevel=colormap+(((level+64)>>2)<<8);
     oldlevel=shadingtable;
@@ -265,10 +235,6 @@
         {
             dc_source=src-offset;
             R_DrawColumn (buf);
-#if (DEVELOPMENT == 1)
-//         if (dc_firstsource<src)
-//            SoftError("dc_firstsource=%p src=%p\n",dc_firstsource,src);
-#endif
         }
         src+=length;
         offset=*(src++);